Class DetermDoubleRV

All Implemented Interfaces:
Cloneable, RandomVariableOps<Double>

public class DetermDoubleRV extends DoubleRandomVariable
Random variable that always generates the same double-precision value. Useful when passing a constant to a method that expects a random variable.
  • Constructor Details

    • DetermDoubleRV

      public DetermDoubleRV(double[] values, double finalValue)
      Constructor. After the values are returned, the final value is returned and does not change.
      Parameters:
      values - the values of the random variable in the order in which these are returned
      finalValue - the final value of the random variable
    • DetermDoubleRV

      public DetermDoubleRV(double[] values)
      Constructor. The values will be repeated indefinitely.
      Parameters:
      values - the values of the random variable in the order in which these are returned
    • DetermDoubleRV

      public DetermDoubleRV(double value, double finalValue)
      Constructor given a starting value and a final value.
      Parameters:
      value - the values of the random variable in the order in which these are returned
      finalValue - the final value of the random variable
  • Method Details