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

Class NormalSample

  • All Implemented Interfaces:
    java.io.Serializable


    public class NormalSample
    extends java.util.Random
    A random sampler for a normal distribution, defined by the mean and standard deviation.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      NormalSample(double mean, double stdev)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double nextSample()
      Returns the next random sample
      • 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

      • NormalSample

        public NormalSample(double mean,
                            double stdev)
        Constructor.
        Parameters:
        mean - mean of the normal distribution
        stdev - standard deviation of the normal distribution
    • Method Detail

      • nextSample

        public double nextSample()
        Returns the next random sample
        Returns:
        double

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.