Class InverseNonCentralCumulativeChiSquareDistribution
The inverse of the cumulative non-central chi-squared distribution: the bracket's right end doubled from df + ncp until the distribution reaches the probability, then Brent's solver within the evaluations left.
public sealed class InverseNonCentralCumulativeChiSquareDistribution
- Inheritance
-
InverseNonCentralCumulativeChiSquareDistribution
- Inherited Members
Constructors
InverseNonCentralCumulativeChiSquareDistribution(double, double, int, double)
Initializes a new instance of the InverseNonCentralCumulativeChiSquareDistribution class.
public InverseNonCentralCumulativeChiSquareDistribution(double df, double ncp, int maxEvaluations = 10, double accuracy = 1E-08)
Parameters
dfdoubleThe degrees of freedom.
ncpdoubleThe non-centrality.
maxEvaluationsintThe maximum number of evaluations, bracketing and solving together.
accuracydoubleThe solver's accuracy.
Exceptions
- ArgumentOutOfRangeException
maxEvaluationsis negative.
Methods
Evaluate(double)
The value below which the distribution has probability x.
public double Evaluate(double x)
Parameters
xdoubleThe probability.
Returns
- double
The quantile.
Exceptions
- NanoQLException
The distribution refuses a point, or the solver finds no root within the evaluations left.