Accord.Tests.Statistics.GeneralConfusionMatrixTest.KappaTest C# (CSharp) Method

KappaTest() private method

private KappaTest ( ) : void
return void
        public void KappaTest()
        {
            int[,] matrix =
            {
                { 29,  6,  5 },
                {  8, 20,  7 },
                {  1,  2, 22 },
            };

            GeneralConfusionMatrix target = new GeneralConfusionMatrix(matrix);


            Assert.AreEqual(3, target.Classes);
            Assert.AreEqual(100, target.Samples);

            Assert.AreEqual(0.563, target.Kappa, 1e-3);
            Assert.AreEqual(23.367749664961245, target.GeometricAgreement);
        }