public class ContinuousUniformSampler extends SamplerBase implements ContinuousSampler
Constructor and Description |
---|
ContinuousUniformSampler(UniformRandomProvider rng,
double lo,
double hi) |
Modifier and Type | Method and Description |
---|---|
double |
sample()
Creates a sample.
|
String |
toString() |
nextDouble, nextInt, nextInt
public ContinuousUniformSampler(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 ContinuousSampler
public String toString()
toString
in class SamplerBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.