Package jline.lang.processes
Class Bernoulli
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.DiscreteDistribution
jline.lang.processes.Bernoulli
- All Implemented Interfaces:
Serializable
A Bernoulli distribution
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class jline.lang.processes.DiscreteDistribution
evalPMF, evalPMF, evalPMF
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getRate, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, sample, setNumParams, setParam
-
Constructor Details
-
Bernoulli
public Bernoulli(double prob)
-
-
Method Details
-
sample
- Specified by:
sample
in classDistribution
-
getMean
public double getMean()- Specified by:
getMean
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(int t) -
evalCDF
public double evalCDF(double t) - Specified by:
evalCDF
in classDistribution
-
evalPMF
public double evalPMF(int k)
-