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 Details

    • 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 generator
      bounds - 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 Details

    • seed

      public void seed(long... seeds)
      Description copied from interface: Seedable
      Seed the random number/vector/scenario generator to produce repeatable experiments.
      Specified by:
      seed in interface Seedable
      Parameters:
      seeds - the seeds
    • nextVector

      public double[] nextVector()
      Description copied from interface: RandomVectorGenerator
      Gets the next random vector.
      Specified by:
      nextVector in interface RandomVectorGenerator
      Returns:
      the next random vector