Class DblSequence

    • Field Detail

      • rndGen

        protected Random rndGen
    • Constructor Detail

      • DblSequence

        public DblSequence()
    • Method Detail

      • init

        public void init()
        Initializes this stream. This method is supposed to be called once before repeated calls to nextDbl() can be made.
      • nextDbl

        public abstract double nextDbl()
        Returns the next number in this number stream.
      • getNumericalMean

        public double getNumericalMean()
        Returns the arithmetic mean of the values returned by nextDbl().
      • getValueRange

        public Pair<Double,​Double> getValueRange()
        This method computes the minimum and maximum support values (range of possible values) of this stream.
        Returns:
        A Pair containing the minimum and maximum support values.
      • min

        public double min()
        Returns the minimum value to be produced by this object.
        Returns:
        Returns the minimum value to be produced by this object.
        See Also:
        getValueRange()
      • max

        public double max()
        Returns the maximum value to be produced by this object.
        Returns:
        Returns the maximum value to be produced by this object.
        See Also:
        getValueRange()
      • getRndGen

        public Random getRndGen()
        Returns the random number generator currently associated with this stream.
      • setRndGen

        public void setRndGen​(Random rndGen)
        Sets the random number generator to be used if this stream has a random component.
      • getName

        public String getName()
        Returns the stream's name.