Namespace: Extreme.StatisticsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public static ChiSquareGoodnessOfFitTest GoodnessOfFitTest(
this Histogram<double> histogram,
ContinuousDistribution distribution,
int numberOfEstimatedParameters
)
<ExtensionAttribute>
Public Shared Function GoodnessOfFitTest (
histogram As Histogram(Of Double),
distribution As ContinuousDistribution,
numberOfEstimatedParameters As Integer
) As ChiSquareGoodnessOfFitTest
public:
[ExtensionAttribute]
static ChiSquareGoodnessOfFitTest^ GoodnessOfFitTest(
Histogram<double>^ histogram,
ContinuousDistribution^ distribution,
int numberOfEstimatedParameters
)
[<ExtensionAttribute>]
static member GoodnessOfFitTest :
histogram : Histogram<float> *
distribution : ContinuousDistribution *
numberOfEstimatedParameters : int -> ChiSquareGoodnessOfFitTest
Parameters
- histogram
- Type: Extreme.DataAnalysisHistogramDouble
The histogram for which to return
the goodness-of-fit test. - distribution
- Type: Extreme.Statistics.DistributionsContinuousDistribution
A Distribution object
that represents the distribution that is to be compared. - numberOfEstimatedParameters
- Type: SystemInt32
The number of parameters of
distribution that were estimated from the sample.
Return Value
Type:
ChiSquareGoodnessOfFitTestA
ChiSquareGoodnessOfFitTest object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HistogramDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Use this method to construct a test for how well the histogram fits a given distribution.
The method returns a ChiSquareGoodnessOfFitTest object.
The distribution can be discrete or continuous. A histogram with the same
boundaries as the original is automatically created to perform the test.
The numberOfEstimatedParameters specifies how many distribution
parameters were estimated from the data. The degrees of freedom of the data is decreased accordingly.
Numerical Libraries
Supported in: 6.0
Reference