Accord.Statistics.Testing.MultinomialTest.MultinomialTest C# (CSharp) Method

MultinomialTest() public method

Creates a new Multinomial test.
public MultinomialTest ( double sampleProportions, int sampleSize, double hypothesizedProportions ) : System
sampleProportions double The proportions for each category in the sample.
sampleSize int The number of observations in the sample.
hypothesizedProportions double The hypothesized category proportions. Default is /// to assume uniformly equal proportions.
return System
        public MultinomialTest(double[] sampleProportions, int sampleSize, double[] hypothesizedProportions)
        {
            if (sampleProportions.Length != hypothesizedProportions.Length)
                throw new DimensionMismatchException("hypothesizedProportions");

            Compute(sampleSize, sampleProportions, hypothesizedProportions);
        }

Same methods

MultinomialTest::MultinomialTest ( double sampleProportions, int sampleSize ) : System
MultinomialTest::MultinomialTest ( int sampleCounts ) : System
MultinomialTest::MultinomialTest ( int sampleCounts, double hypothesizedProportions ) : System
MultinomialTest::MultinomialTest ( int sample, int categories ) : System
MultinomialTest::MultinomialTest ( int sample, int categories, double hypothesizedProportions ) : System