Class DblNormal

    • Constructor Detail

      • DblNormal

        public DblNormal()
      • DblNormal

        public DblNormal​(double mean,
                         double stdev)
    • Method Detail

      • nextDbl

        public double nextDbl()
        Description copied from class: DblSequence
        Returns the next number in this number stream.
        Specified by:
        nextDbl in class DblSequence
      • getValueRange

        public Pair<Double,​Double> getValueRange()
        Description copied from class: DblSequence
        This method computes the minimum and maximum support values (range of possible values) of this stream.
        Overrides:
        getValueRange in class DblSequence
        Returns:
        A Pair containing the minimum and maximum support values.
      • getMean

        public double getMean()
      • setMean

        public void setMean​(double mean)
        Sets the mean value of this normally distributed number stream. Default value is 0.0.
        Parameters:
        mean - The mean value.
      • getStdev

        public double getStdev()
      • setStdev

        public void setStdev​(double stdev)
                      throws org.apache.commons.math3.exception.NotPositiveException
        Sets the standard deviation of this normally distributed number stream. This defaults to 1.0.
        Parameters:
        stdev - The standard deviation.
        Throws:
        org.apache.commons.math3.exception.NotPositiveException - Raised if stdev was negative.