| PearsonsChiSquareTest(Int32, DoubleVector) Constructor |
Constructs a PearsonsChiSquareTest using empirical data tracking the outcomes of a series of
experiment runs along with the expected frequencies of outcomes for any one particular
experiment run.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public PearsonsChiSquareTest(
int[] outcomes,
DoubleVector probabilities
)
Public Sub New (
outcomes As Integer(),
probabilities As DoubleVector
)
public:
PearsonsChiSquareTest(
array<int>^ outcomes,
DoubleVector^ probabilities
)
new :
outcomes : int[] *
probabilities : DoubleVector -> PearsonsChiSquareTest
Parameters
- outcomes Int32
- Array of counts for each independent outcome possible for the experiment.
For example the outcomes of rolling a fair die 100 times might yield the array {17,23,15,14,16,15}
- probabilities DoubleVector
- Array of expected counts of each independent outcome for a single
experiment run. The sum of this array must equal 1. For example an experiment
consisting of rolling a fair die
would yeild the array {1/6,1/6,1/6,1/6,1/6,1/6}
See Also