Class ArrivalsNonStationary
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.simulation.arrivalprocess.ArrivalProcess
-
- jasima.core.simulation.arrivalprocess.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
-
-
Field Summary
-
Fields inherited from class jasima.core.simulation.arrivalprocess.ArrivalProcess
isFirst, state
-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Constructor Summary
Constructors Constructor Description ArrivalsNonStationary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DblSequenceclone()Clones the current number stream.org.apache.commons.math3.analysis.UnivariateFunctiongetInverseCumulativeExpectation()DblSequencegetUnitMeanDblStream()voidinit()Initializes this stream.doublenextDbl()Returns the next number in this number stream.voidsetInverseCumulativeExpectation(org.apache.commons.math3.analysis.UnivariateFunction inverseCumulativeExpectation)Sets the inverse cumulative expectation function.voidsetRndGen(Random rndGen)Sets the random number generator to be used if this stream has a random component.voidsetUnitMeanDblStream(DblSequence unitMeanDblStream)Sets the DblStream to use.-
Methods inherited from class jasima.core.simulation.arrivalprocess.ArrivalProcess
getInitialState, getNumericalMean, getValueRange, isArrivalAtTimeZero, setArrivalAtTimeZero, setInitialState
-
Methods inherited from class jasima.core.random.continuous.DblSequence
createStreamDefFromStream, getName, getRndGen, max, min, setName
-
-
-
-
Method Detail
-
nextDbl
public double nextDbl()
Description copied from class:DblSequenceReturns the next number in this number stream.- Specified by:
nextDblin classArrivalProcess
-
init
public void init()
Description copied from class:DblSequenceInitializes this stream. This method is supposed to be called once before repeated calls toDblSequence.nextDbl()can be made.- Overrides:
initin classArrivalProcess
-
clone
public DblSequence clone()
Description copied from class:DblSequenceClones the current number stream. This method fails with aCloneNotSupportedExceptionif there is a random number generator associated with this stream.- Overrides:
clonein classDblSequence
-
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:DblSequenceSets the random number generator to be used if this stream has a random component.- Overrides:
setRndGenin classDblSequence
-
-