GaussianSampler
class GaussianSampler(val mean: Double, val standardDeviation: Double, normalized: NormalizedGaussianSampler = BoxMullerSampler) : BlockingDoubleSampler(source)
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
constructor(mean: Double, standardDeviation: Double, normalized: NormalizedGaussianSampler = BoxMullerSampler)
Functions
Link copied to clipboard
Link copied to clipboard
Generates a chain of samples.
Link copied to clipboard
Generates size real samples and chunks them into some buffers.
Generates size integer samples and chunks them into some buffers.
fun <T : Any> Sampler<T>.sampleBuffer(generator: RandomGenerator, size: Int, bufferFactory: BufferFactory<T> = BufferFactory.boxing()): Chain<Buffer<T>>
Sample a bunch of values