Class DblUniformRange

    • Constructor Detail

      • DblUniformRange

        public DblUniformRange​(double min,
                               double max)
      • DblUniformRange

        public DblUniformRange​(Random random,
                               double min,
                               double max)
      • DblUniformRange

        public DblUniformRange​(String name,
                               double min,
                               double max)
      • DblUniformRange

        public DblUniformRange​(Random random,
                               String name,
                               double min,
                               double max)
    • Method Detail

      • setRange

        public void setRange​(double min,
                             double max)
      • init

        public void init()
        Description copied from class: DblSequence
        Initializes this stream. This method is supposed to be called once before repeated calls to DblSequence.nextDbl() can be made.
        Overrides:
        init in class DblSequence
      • 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.
      • getMin

        public double getMin()
      • setMin

        public void setMin​(double min)
        Sets the minimum value returned by this number stream.
        Parameters:
        min - The minimum to use.
      • getMax

        public double getMax()
      • setMax

        public void setMax​(double max)
        Sets the maximum value returned by this number stream.
        Parameters:
        max - The maximum to use.