Class UniformDistributionOverBox
- java.lang.Object
-
- dev.nm.stat.random.rng.multivariate.UniformDistributionOverBox
-
- All Implemented Interfaces:
RandomVectorGenerator
,Seedable
public class UniformDistributionOverBox extends Object implements RandomVectorGenerator
This random vector generator uniformly samples points over a box region.
-
-
Constructor Summary
Constructors Constructor Description UniformDistributionOverBox(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
nextVector()
Gets the next random vector.void
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
-
-
-
Constructor Detail
-
UniformDistributionOverBox
public UniformDistributionOverBox(RandomLongGenerator uniform, RealInterval... bounds)
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
public UniformDistributionOverBox(RealInterval... bounds)
Constructs a random vector generator to uniformly sample points over a box region.- Parameters:
bounds
- the feasible box region
-
-
Method Detail
-
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
-
-