ContinuousSamplerpublic class ContinuousUniformSampler extends SamplerBase implements ContinuousSampler
| Constructor | Description |
|---|---|
ContinuousUniformSampler(org.apache.commons.rng.UniformRandomProvider rng,
double lo,
double hi) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
sample() |
Creates a sample.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnextDouble, nextInt, nextInt, nextLongpublic ContinuousUniformSampler(org.apache.commons.rng.UniformRandomProvider rng,
double lo,
double hi)
rng - Generator of uniformly distributed random numbers.lo - Lower bound.hi - Higher bound.public double sample()
sample in interface ContinuousSamplerpublic java.lang.String toString()
toString in class SamplerBaseCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.