Package jsl.utilities.distributions
Interface CDFIfc
-
- All Known Subinterfaces:
ContinuousDistributionIfc
,DiscreteDistributionIfc
,DistributionFunctionIfc
,DistributionIfc
,LossFunctionDistributionIfc
- All Known Implementing Classes:
Bernoulli
,Beta
,Binomial
,Constant
,DEmpiricalCDF
,Distribution
,DUniform
,Exponential
,Gamma
,Geometric
,LogLogistic
,Lognormal
,MTP
,NegativeBinomial
,Normal
,PearsonType5
,PearsonType6
,Poisson
,ShiftedDistribution
,ShiftedGeometric
,ShiftedLossFunctionDistribution
,StudentT
,Triangular
,TruncatedDistribution
,Uniform
,VConstant
,Weibull
public interface CDFIfc
Provides an interface for functions related to a cumulative distribution function CDF
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double
cdf(double x)
Returns the F(x) = Pr{X <= x} where F represents the cumulative distribution functiondefault double
cdf(double x1, double x2)
Returns the Pr{x1<=X<=x2} for the distributiondefault double
complementaryCDF(double x)
Computes the complementary cumulative probability distribution function for given value of x
-
-
-
Method Detail
-
cdf
double cdf(double x)
Returns the F(x) = Pr{X <= x} where F represents the cumulative distribution function- Parameters:
x
- a double representing the upper limit- Returns:
- a double representing the probability
-
cdf
default double cdf(double x1, double x2)
Returns the Pr{x1<=X<=x2} for the distribution- Parameters:
x1
- a double representing the lower limitx2
- a double representing the upper limit- Returns:
- cdf(x2)-cdf(x1)
- Throws:
java.lang.IllegalArgumentException
- if x1 > x2
-
complementaryCDF
default double complementaryCDF(double x)
Computes the complementary cumulative probability distribution function for given value of x- Parameters:
x
- The value to be evaluated- Returns:
- The probability, 1-P{X<=x}
-
-