public class RandomNumberGeneratorMersenne extends Object implements RandomNumberGenerator
MersenneTwister
algorithm.
Either one fixed constant-seed or the system clock will be used as a seed.
Constructor and Description |
---|
RandomNumberGeneratorMersenne(boolean fixedSeed)
Creates indicating whether to use a fixed-seed or not.
|
Modifier and Type | Method and Description |
---|---|
cern.jet.random.Normal |
generateNormal(double mean,
double standardDeviation)
Generates a Gaussian (Normal) random variable with particular parameterization.
|
cern.jet.random.Poisson |
generatePoisson(double param)
Generates a Poisson random variable with particular parameterization.
|
double |
sampleDoubleZeroAndOne()
Samples from a uniformly-distributed range between 0.0 (exclusive) and 1.0
(exclusive).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sampleDoubleFromRange, sampleDoubleFromRange, sampleDoubleFromZeroCenteredRange, sampleFromList, sampleIntFromRange, sampleIntFromRange, sampleLongFromRange
public RandomNumberGeneratorMersenne(boolean fixedSeed)
fixedSeed
- if true, a fixed constant-seed. if false, the seed is the system clock.public double sampleDoubleZeroAndOne()
RandomNumberGenerator
sampleDoubleZeroAndOne
in interface RandomNumberGenerator
public cern.jet.random.Poisson generatePoisson(double param)
RandomNumberGenerator
generatePoisson
in interface RandomNumberGenerator
param
- the single parameter for the distribution.public cern.jet.random.Normal generateNormal(double mean, double standardDeviation)
RandomNumberGenerator
generateNormal
in interface RandomNumberGenerator
mean
- mean parameter for the distributionstandardDeviation
- standard-deviation parameter for the distributionCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.