IMSL C# Numerical Library

ChiSquaredTest Constructor (ICdfFunction, Int32, Int32)

Constructor for the Chi-squared goodness-of-fit test

public ChiSquaredTest(
   ICdfFunction cdf,
   int nCutpoints,
   int nParameters
);

Parameters

cdf
Object that implements the ICdfFunction interface.
nCutpoints
A int which specifies the number of cutpoints.
nParameters
A int which specifies the number of parameters estimated in computing the Cdf.

Exceptions

Exception Type Condition
NotCDFException is thrown if the function cdf.CdfFunction is not a valid CDF.
DidNotConvergeException is thrown if the interation to find the inverse of the CDF did not converge. The inverse CDF is needed to compute the cutpoints.

See Also

ChiSquaredTest Class | Imsl.Stat Namespace | ChiSquaredTest Constructor Overload List