jhplot.math.num.pdf
Class DiscreteDistribution
- java.lang.Object
- 
- jhplot.math.num.pdf.DiscreteDistribution
 
- 
- All Implemented Interfaces:
- Distribution
 - Direct Known Subclasses:
- Binomial, Geometric, Hypergeometric, NegativeBinomial, Poisson
 
 
 public abstract class DiscreteDistribution extends java.lang.Object implements Distribution Base discrete distribution.- Since:
- 1.2
 
- 
- 
Constructor SummaryConstructors Constructor and Description DiscreteDistribution()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract doublecumulativeProbability(int x)The CDF for this distribution.abstract intinverseCumulativeProbability(double p)The inverse CDF for this distribution.abstract doubleprobability(int x)The PMF for this distribution.
 
- 
- 
- 
Method Detail- 
cumulativeProbabilitypublic abstract double cumulativeProbability(int x) throws NumericExceptionThe CDF for this distribution. This method returns P(X ≤ x).- Parameters:
- x- the value at which the CDF is evaluated.
- Returns:
- CDF for this distribution.
- Throws:
- NumericException- if the cumulative probability can not be computed.
 
 - 
inverseCumulativeProbabilitypublic abstract int inverseCumulativeProbability(double p) throws NumericExceptionThe inverse CDF for this distribution. This method returns the largest x such that, P(X ≤ x) ≤ p.- Parameters:
- p- the cumulative probability.
- Returns:
- x
- Throws:
- NumericException- if the inverse cumulative probability can not be computed.
 
 - 
probabilitypublic abstract double probability(int x) throws NumericExceptionThe PMF for this distribution. This method returns P(X = x).- Parameters:
- x- the value at which the probability is evaluated.
- Returns:
- PMF for this distribution.
- Throws:
- NumericException- if the probability can not be computed.
 
 
- 
 
- 
DMelt 3.0 © DataMelt by jWork.ORG