Click or drag to resize

PearsonsChiSquaredTestUpdate Method (Double, Vector, CUDistribution, Int32)

Updates test statistic using provided sample.

Namespace:  FinMath.Statistics.HypothesisTesting
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public void Update(
	double[] sample,
	Vector binEdges,
	CUDistribution distribution,
	int parameters
)

Parameters

sample
Type: SystemDouble
Variate samples.
binEdges
Type: FinMath.LinearAlgebraVector
Edges of bins.
1binEdges
should be sorted in acceding order and should NOT include left edge of the leftmost bin and right edge of the rightmost bin (-∞ and +∞ will be assumed as this two edges correspondingly).
distribution
Type: FinMath.Statistics.DistributionsCUDistribution
Supposed probability distribution.
parameters
Type: SystemInt32
The number of parameters used in fitting the distribution. Must be non-negative.
See Also