Class DetermIntegerRV

All Implemented Interfaces:
Cloneable, RandomVariableOps<Integer>

public class DetermIntegerRV extends IntegerRandomVariable
Random variable that generates a deterministic sequence of integer values.
  • Constructor Details

    • DetermIntegerRV

      public DetermIntegerRV(int[] values, int finalValue)
      Constructor. When next is called, after the values in the first argument are returned in order, the final value is returned persistently from then on.
      Parameters:
      values - the values of the random variable in the order in which these are returned
      finalValue - the final value of the random variable
    • DetermIntegerRV

      public DetermIntegerRV(int[] values)
      Constructor for a repeating sequence.
      Parameters:
      values - the values of the random variable in the order in which these are returned
    • DetermIntegerRV

      public DetermIntegerRV(int value, int finalValue)
      Constructor given a starting value and a final value.
      Parameters:
      value - the starting value of the random variable
      finalValue - the subsequent value of the random variable
  • Method Details