java.lang.Object
org.ojalgo.random.process.PoissonProcess
- All Implemented Interfaces:
RandomProcess<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.
- Author:
- apete
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.random.process.RandomProcess
RandomProcess.SimulationResults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDistribution(double evaluationPoint) final doubleEquivalent to callingRandomProcess.getDistribution(double)with argumant1.0, and thenDistribution.getExpected().final doublegetLowerConfidenceQuantile(double confidence) The same thing can be achieved by first callingRandomProcess.getDistribution(double)with argumant1.0, and thenContinuousDistribution.getQuantile(double)(but with different input argument).final doubleEquivalent to callingRandomProcess.getDistribution(double)with argumant1.0, and thenDistribution.getStandardDeviation().final doublegetUpperConfidenceQuantile(double confidence) The same thing can be achieved by first callingRandomProcess.getDistribution(double)with argumant1.0, and thenContinuousDistribution.getQuantile(double)(but with different input argument).final doubleEquivalent to callingRandomProcess.getDistribution(double)with argumant1.0, and thenDistribution.getVariance().simulate(int numberOfRealisations, int numberOfSteps, double stepSize) Returns an collection of sample sets.
-
Constructor Details
-
PoissonProcess
protected PoissonProcess(double rate)
-
-
Method Details
-
getDistribution
- Parameters:
evaluationPoint- How far into the future?- Returns:
- The distribution for the process value at that future time.
-
getTimeBetweenConsecutiveEvents
-
simulate
public RandomProcess.SimulationResults simulate(int numberOfRealisations, int numberOfSteps, double stepSize) Description copied from interface:RandomProcessReturns an collection of sample sets. The array has numberOfSteps elements, and each sample set has numberOfRealisations samples.- Returns:
- An array of sample sets. The array has aNumberOfSteps elements, and each sample set has aNumberOfRealisations samples.
-
getExpected
public final double getExpected()Equivalent to callingRandomProcess.getDistribution(double)with argumant1.0, and thenDistribution.getExpected(). -
getLowerConfidenceQuantile
public final double getLowerConfidenceQuantile(double confidence) The same thing can be achieved by first callingRandomProcess.getDistribution(double)with argumant1.0, and thenContinuousDistribution.getQuantile(double)(but with different input argument). -
getStandardDeviation
public final double getStandardDeviation()Equivalent to callingRandomProcess.getDistribution(double)with argumant1.0, and thenDistribution.getStandardDeviation(). -
getUpperConfidenceQuantile
public final double getUpperConfidenceQuantile(double confidence) The same thing can be achieved by first callingRandomProcess.getDistribution(double)with argumant1.0, and thenContinuousDistribution.getQuantile(double)(but with different input argument). -
getVariance
public final double getVariance()Equivalent to callingRandomProcess.getDistribution(double)with argumant1.0, and thenDistribution.getVariance().
-