Accord.Statistics.Testing.TwoAverageKappaTest.TwoAverageKappaTest C# (CSharp) 메소드

TwoAverageKappaTest() 공개 메소드

Creates a new Two-Table Mean Kappa test.
public TwoAverageKappaTest ( GeneralConfusionMatrix matrices1, GeneralConfusionMatrix matrices2, double hypothesizedDifference, bool assumeEqualVariances = true, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System
matrices1 Accord.Statistics.Analysis.GeneralConfusionMatrix The first group of contingency tables.
matrices2 Accord.Statistics.Analysis.GeneralConfusionMatrix The second group of contingency tables.
hypothesizedDifference double The hypothesized difference between the two average Kappa values.
assumeEqualVariances bool True to assume equal variances, false otherwise. Default is true.
alternate TwoSampleHypothesis The alternative hypothesis (research hypothesis) to test.
리턴 System
        public TwoAverageKappaTest(GeneralConfusionMatrix[] matrices1, GeneralConfusionMatrix[] matrices2,
            double hypothesizedDifference = 0, bool assumeEqualVariances = true,
            TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent)
        {

            double[] kappas1 = new double[matrices1.Length];
            for (int i = 0; i < matrices1.Length; i++)
                kappas1[i] = matrices1[i].Kappa;

            double[] kappas2 = new double[matrices1.Length];
            for (int i = 0; i < matrices2.Length; i++)
                kappas2[i] = matrices2[i].Kappa;

            double meanKappa1 = kappas1.Mean();
            double meanKappa2 = kappas2.Mean();

            Variance1 = kappas1.Variance(meanKappa1);
            Variance2 = kappas2.Variance(meanKappa2);

            int kappaSamples1 = matrices1.Length;
            int kappaSamples2 = matrices2.Length;

            base.Compute(
               meanKappa1, Variance1, kappaSamples1,
               meanKappa2, Variance2, kappaSamples2,
               hypothesizedDifference, assumeEqualVariances, alternate);
        }

Same methods

TwoAverageKappaTest::TwoAverageKappaTest ( double meanKappa1, double varKappa1, int kappaSamples1, double meanKappa2, double varKappa2, int kappaSamples2, double hypothesizedDifference, bool assumeEqualVariances = true, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System
TwoAverageKappaTest