Class InverseTransformSamplingGammaRNG
java.lang.Object
dev.nm.stat.random.rng.univariate.InverseTransformSampling
dev.nm.stat.random.rng.univariate.gamma.InverseTransformSamplingGammaRNG
- All Implemented Interfaces:
RandomGammaGenerator
,RandomNumberGenerator
,Seedable
@Deprecated
public class InverseTransformSamplingGammaRNG
extends InverseTransformSampling
implements RandomGammaGenerator
Deprecated.
There exist much more efficient algorithms.
This is a pseudo random number generator that samples from the gamma distribution using the inverse transform sampling method.
This method is very slow and much better methods exist.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct a random number generator to sample from the standard gamma distribution using the inverse transform sampling method.InverseTransformSamplingGammaRNG
(double k, double theta) Deprecated.Construct a random number generator to sample from the gamma distribution using the inverse transform sampling method. -
Method Summary
Methods inherited from class dev.nm.stat.random.rng.univariate.InverseTransformSampling
nextDouble, seed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.nm.stat.random.rng.univariate.RandomNumberGenerator
nextDouble
-
Constructor Details
-
InverseTransformSamplingGammaRNG
public InverseTransformSamplingGammaRNG(double k, double theta) Deprecated.Construct a random number generator to sample from the gamma distribution using the inverse transform sampling method.- Parameters:
k
- the shape parametertheta
- the scale parameter
-
InverseTransformSamplingGammaRNG
public InverseTransformSamplingGammaRNG()Deprecated.Construct a random number generator to sample from the standard gamma distribution using the inverse transform sampling method.
-