Package jline.lang.processes
Class DiscreteDistribution
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.DiscreteDistribution
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Bernoulli
,Binomial
,DiscreteSampler
,DiscreteUniform
,Geometric
,Poisson
,Zipf
An abstract class for discrete distributions.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDiscreteDistribution
(String name, int numParam, Pair<Double, Double> support) -
Method Summary
Methods inherited from class jline.lang.processes.Distribution
evalCDF, evalProbInterval, getMean, getName, getNumParams, getParam, getRate, getSCV, getSkewness, getSupport, getVar, isContinuous, isDisabled, isDiscrete, isImmediate, sample, sample, setNumParams, setParam
-
Constructor Details
-
DiscreteDistribution
-
-
Method Details
-
evalPMF
public double evalPMF(double k) -
evalPMF
public double[] evalPMF(double[] k) -
evalPMF
-