Class ArrivalsNonStationary

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ArrivalsNonStationary
    extends ArrivalProcess
    This class can be used to create a non-stationary arrival process, i.e., if (inter-)arrivals do not follow a single distribution. To do so, a DblStream with mean of 1 (e.g., an exponential distribution with rate 1) and the inverse cumulative expectation function have to be provided.

    For details see, e.g., Law: "Simulation Modelling and Analysis", how to create non-stationary (Poisson) processes.

    Author:
    Torsten Hildebrandt, 2012-08-07
    See Also:
    Serialized Form
    • Constructor Detail

      • ArrivalsNonStationary

        public ArrivalsNonStationary()
    • Method Detail

      • nextDbl

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

        public DblSequence getUnitMeanDblStream()
      • setUnitMeanDblStream

        public void setUnitMeanDblStream​(DblSequence unitMeanDblStream)
        Sets the DblStream to use. This stream has to produce values with a mean of 1.
        Parameters:
        unitMeanDblStream -
      • getInverseCumulativeExpectation

        public org.apache.commons.math3.analysis.UnivariateFunction getInverseCumulativeExpectation()
      • setInverseCumulativeExpectation

        public void setInverseCumulativeExpectation​(org.apache.commons.math3.analysis.UnivariateFunction inverseCumulativeExpectation)
        Sets the inverse cumulative expectation function. This function has to be strictly monotonically increasing.
        Parameters:
        inverseCumulativeExpectation -
      • setRndGen

        public void setRndGen​(Random rndGen)
        Description copied from class: DblSequence
        Sets the random number generator to be used if this stream has a random component.
        Overrides:
        setRndGen in class DblSequence