Class ContinuousUniformSampler

    • Method Summary

      Modifier and Type Method Description
      double sample()
      Creates a sample.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContinuousUniformSampler

        public ContinuousUniformSampler​(UniformRandomProvider rng,
                                        double lo,
                                        double hi)
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        lo - Lower bound.
        hi - Higher bound.
    • Method Detail

      • sample

        public double sample()
        Creates a sample.
        Specified by:
        sample in interface ContinuousSampler
        Returns:
        a sample.