Package jline.lang.processes
Class Geometric
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.DiscreteDistribution
jline.lang.processes.Geometric
- All Implemented Interfaces:
Serializable
A Geometric distribution.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class jline.lang.processes.DiscreteDistribution
evalPMF, evalPMF
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, sample, setNumParams, setParam
-
Constructor Details
-
Geometric
public Geometric(double probability)
-
-
Method Details
-
main
-
getMean
public double getMean()- Specified by:
getMean
in classDistribution
-
sample
Gets n samples from the distribution- Specified by:
sample
in classDistribution
- Parameters:
n
- - the number of samples- Returns:
- - n samples from the distribution
-
getRate
public double getRate()- Overrides:
getRate
in classDistribution
-
getSCV
public double getSCV()- Specified by:
getSCV
in classDistribution
-
getVar
public double getVar()- Overrides:
getVar
in classDistribution
-
getSkewness
public double getSkewness()- Specified by:
getSkewness
in classDistribution
-
evalCDF
public double evalCDF(double t) - Specified by:
evalCDF
in classDistribution
-
evalPMF
public double evalPMF(double t) - Overrides:
evalPMF
in classDiscreteDistribution
-