BoxMullerNormalizedGaussianSampler
and GaussianSampler
instead.@Deprecated public class BoxMullerGaussianSampler extends SamplerBase implements ContinuousSampler
Sampling uses UniformRandomProvider.nextDouble()
.
Constructor and Description |
---|
BoxMullerGaussianSampler(UniformRandomProvider rng,
double mean,
double standardDeviation)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
double |
sample()
Deprecated.
Creates a
double sample. |
String |
toString()
Deprecated.
|
nextDouble, nextInt, nextInt, nextLong
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
samples, samples
public BoxMullerGaussianSampler(UniformRandomProvider rng, double mean, double standardDeviation)
rng
- Generator of uniformly distributed random numbers.mean
- Mean of the Gaussian distribution.standardDeviation
- Standard deviation of the Gaussian distribution.IllegalArgumentException
- if standardDeviation <= 0
public double sample()
double
sample.sample
in interface ContinuousSampler
public String toString()
toString
in class SamplerBase
Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.