public class UniformDistributionOverBox extends Object implements RandomVectorGenerator
Constructor and Description |
---|
UniformDistributionOverBox(RandomLongGenerator uniform,
RealInterval... bounds)
Construct a random vector generator to uniformly sample points over a box region.
|
UniformDistributionOverBox(RealInterval... bounds)
Construct a random vector generator to uniformly sample points over a box region.
|
Modifier and Type | Method and Description |
---|---|
double[] |
nextVector()
Get the next random vector.
|
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
public UniformDistributionOverBox(RandomLongGenerator uniform, RealInterval... bounds)
uniform
- a uniform random number generatorbounds
- the feasible box regionpublic UniformDistributionOverBox(RealInterval... bounds)
bounds
- the feasible box regionpublic void seed(long... seeds)
Seedable
public double[] nextVector()
RandomVectorGenerator
nextVector
in interface RandomVectorGenerator
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.