GaussianSampler
class GaussianSampler(mean: Double, standardDeviation: Double, normalized: NormalizedGaussianSampler) : BlockingDoubleSampler
Content copied to clipboard
Sampling from a Gaussian distribution with given mean and standard deviation.
Based on Commons RNG implementation. See https://commons.apache.org/proper/commons-rng/commons-rng-sampling/apidocs/org/apache/commons/rng/sampling/distribution/GaussianSampler.html.
Constructors
Link copied to clipboard
fun GaussianSampler(mean: Double, standardDeviation: Double, normalized: NormalizedGaussianSampler = BoxMullerSampler)
Content copied to clipboard
Types
Functions
Link copied to clipboard
open override fun sample(generator: RandomGenerator): BlockingDoubleChain
Content copied to clipboard
Generates a chain of samples.