Class GaussianSampler

java.lang.Object
org.apache.commons.rng.sampling.distribution.GaussianSampler
All Implemented Interfaces:
ContinuousSampler, SharedStateContinuousSampler, SharedStateSampler<SharedStateContinuousSampler>

public class GaussianSampler extends Object implements SharedStateContinuousSampler
Sampling from a Gaussian distribution with given mean and standard deviation.

Note

The mean and standard deviation are validated to ensure they are finite. This prevents generation of NaN samples by avoiding invalid arithmetic (inf * 0 or inf - inf). However use of an extremely large standard deviation and/or mean may result in samples that are infinite; that is the parameters are not validated to prevent truncation of the output distribution.

Since:
1.1