Class UniformDistributionOverBox
java.lang.Object
dev.nm.stat.random.rng.multivariate.UniformDistributionOverBox
- All Implemented Interfaces:
RandomVectorGenerator
,Seedable
This random vector generator uniformly samples points over a box region.
-
Constructor Summary
ConstructorsConstructorDescriptionUniformDistributionOverBox
(RealInterval... bounds) Constructs a random vector generator to uniformly sample points over a box region.UniformDistributionOverBox
(RandomLongGenerator uniform, RealInterval... bounds) Constructs a random vector generator to uniformly sample points over a box region. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Gets the next random vector.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
UniformDistributionOverBox
Constructs a random vector generator to uniformly sample points over a box region.- Parameters:
uniform
- a uniform random number generatorbounds
- the feasible box region
-
UniformDistributionOverBox
Constructs a random vector generator to uniformly sample points over a box region.- Parameters:
bounds
- the feasible box region
-
-
Method Details
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments. -
nextVector
public double[] nextVector()Description copied from interface:RandomVectorGenerator
Gets the next random vector.- Specified by:
nextVector
in interfaceRandomVectorGenerator
- Returns:
- the next random vector
-