public class AhrensDieterExponentialSampler extends SamplerBase implements ContinuousSampler
| Constructor and Description |
|---|
AhrensDieterExponentialSampler(UniformRandomProvider rng,
double mean) |
| Modifier and Type | Method and Description |
|---|---|
double |
sample()
Creates a sample.
|
String |
toString() |
nextDouble, nextInt, nextIntpublic AhrensDieterExponentialSampler(UniformRandomProvider rng, double mean)
rng - Generator of uniformly distributed random numbers.mean - Mean of this distribution.public double sample()
sample in interface ContinuousSamplerpublic String toString()
toString in class SamplerBaseCopyright © 2016 The Apache Software Foundation. All rights reserved.