|
UnivariateDiscreteDistributionComplementaryDistributionFunction Method (Int32, Boolean)
|
Gets the complementary cumulative distribution function
(ccdf) for this distribution evaluated at point k.
This function is also known as the Survival function.
Namespace:
Accord.Statistics.Distributions.Univariate
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public virtual double ComplementaryDistributionFunction(
int k,
bool inclusive
)
Public Overridable Function ComplementaryDistributionFunction (
k As Integer,
inclusive As Boolean
) As Double
Request Example
View SourceParameters
- k
- Type: SystemInt32
A single point in the distribution range. - inclusive
- Type: SystemBoolean
True to return P(X >= x), false to return P(X > x). Default is false.
Return Value
Type:
DoubleRemarks
The Complementary Cumulative Distribution Function (CCDF) is
the complement of the Cumulative Distribution Function, or 1
minus the CDF.
Examples
double equal = dist.ProbabilityMassFunction(k: 1);
double less = dist.DistributionFunction(k: 1, inclusive: false);
double lessThanOrEqual = dist.DistributionFunction(k: 1, inclusive: true);
double greater = dist.ComplementaryDistributionFunction(k: 1);
double greaterThanOrEqual = dist.ComplementaryDistributionFunction(k: 1, inclusive: true);
See Also