- java.lang.Object
-
- org.ojalgo.random.process.AbstractProcess<D>
-
- org.ojalgo.random.process.SingleValueBasedProcess<Poisson>
-
- org.ojalgo.random.process.PoissonProcess
-
- All Implemented Interfaces:
RandomProcess<Poisson>
public final class PoissonProcess extends SingleValueBasedProcess<Poisson>
A Poisson process is a stochastic process which counts the number of events in a given time interval. The time between each pair of consecutive events has an exponential distribution with parameter λ and each of these inter-arrival times is assumed to be independent of other inter-arrival times. The process is a good model of radioactive decay, telephone calls and requests for a particular document on a web server, among many other phenomena.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.random.process.RandomProcess
RandomProcess.SimulationResults
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPoissonProcess(double rate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) doubledoStep(double stepSize, double normalisedRandomIncrement)PoissongetDistribution(double evaluationPoint)(package private) doublegetExpected(double stepSize)(package private) doublegetLowerConfidenceQuantile(double stepSize, double confidence)(package private) doublegetNormalisedRandomIncrement()(package private) doublegetStandardDeviation(double stepSize)ExponentialgetTimeBetweenConsecutiveEvents()(package private) doublegetUpperConfidenceQuantile(double stepSize, double confidence)(package private) doublegetVariance(double stepSize)-
Methods inherited from class org.ojalgo.random.process.SingleValueBasedProcess
getCurrentValue, setCurrentValue, simulate
-
Methods inherited from class org.ojalgo.random.process.AbstractProcess
getExpected, getLowerConfidenceQuantile, getStandardDeviation, getUpperConfidenceQuantile, getVariance, step
-
-
-
-
Field Detail
-
GENERATOR
private static final Poisson GENERATOR
-
myRate
private final double myRate
-
-
Method Detail
-
getDistribution
public Poisson getDistribution(double evaluationPoint)
- Parameters:
evaluationPoint- How far into the future?- Returns:
- The distribution for the process value at that future time.
-
getTimeBetweenConsecutiveEvents
public Exponential getTimeBetweenConsecutiveEvents()
-
doStep
double doStep(double stepSize, double normalisedRandomIncrement)- Specified by:
doStepin classAbstractProcess<Poisson>
-
getExpected
double getExpected(double stepSize)
- Specified by:
getExpectedin classAbstractProcess<Poisson>
-
getLowerConfidenceQuantile
double getLowerConfidenceQuantile(double stepSize, double confidence)- Specified by:
getLowerConfidenceQuantilein classAbstractProcess<Poisson>
-
getNormalisedRandomIncrement
double getNormalisedRandomIncrement()
- Specified by:
getNormalisedRandomIncrementin classAbstractProcess<Poisson>
-
getStandardDeviation
double getStandardDeviation(double stepSize)
- Specified by:
getStandardDeviationin classAbstractProcess<Poisson>
-
getUpperConfidenceQuantile
double getUpperConfidenceQuantile(double stepSize, double confidence)- Specified by:
getUpperConfidenceQuantilein classAbstractProcess<Poisson>
-
getVariance
double getVariance(double stepSize)
- Specified by:
getVariancein classAbstractProcess<Poisson>
-
-