jhplot.math.num.pdf
Class ContinuousDistribution
- java.lang.Object
-
- jhplot.math.num.pdf.ContinuousDistribution
-
- All Implemented Interfaces:
- Distribution
- Direct Known Subclasses:
- Beta, Cauchy, ChiSquared, Exponential, FDistribution, Gamma, Laplace, Logistic, LogNormal, Normal, Rayleigh, TDistribution, Uniform, Weibull
public abstract class ContinuousDistribution extends java.lang.Object implements Distribution
Base continuous distribution.
-
-
Constructor Summary
Constructors Constructor and Description ContinuousDistribution()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract double
cumulativeProbability(double x)
The CDF for this distribution.abstract double
inverseCumulativeProbability(double p)
The inverse CDF for this distribution.
-
-
-
Method Detail
-
cumulativeProbability
public abstract double cumulativeProbability(double x) throws NumericException
The 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.
-
inverseCumulativeProbability
public abstract double inverseCumulativeProbability(double p) throws NumericException
The inverse CDF for this distribution. This method returns 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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG