Documentation of 'org.statcato.random.UniformSample' Java class
UniformSample
org.statcato.random

Class UniformSample

  • All Implemented Interfaces:
    java.io.Serializable


    public class UniformSample
    extends java.util.Random
    A random sampler for a range of uniformly distributed continuous double values.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      UniformSample(double minimum, double maximum)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double nextSample()
      Returns the next random sample within [minimum, maximum)
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UniformSample

        public UniformSample(double minimum,
                             double maximum)
        Constructor. The range of uniformly distributed values is [minimum, maximum).
        Parameters:
        minimum - inclusive
        maximum - exclusive
    • Method Detail

      • nextSample

        public double nextSample()
        Returns the next random sample within [minimum, maximum)
        Returns:
        double

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.