ContinuousSampler
public class AhrensDieterExponentialSampler extends SamplerBase implements ContinuousSampler
Constructor | Description |
---|---|
AhrensDieterExponentialSampler(org.apache.commons.rng.UniformRandomProvider rng,
double mean) |
Modifier and Type | Method | Description |
---|---|---|
double |
sample() |
Creates a sample.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
nextDouble, nextInt, nextInt, nextLong
public AhrensDieterExponentialSampler(org.apache.commons.rng.UniformRandomProvider rng, double mean)
rng
- Generator of uniformly distributed random numbers.mean
- Mean of this distribution.public double sample()
sample
in interface ContinuousSampler
public java.lang.String toString()
toString
in class SamplerBase
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.