Accord.Tests.Imaging.ToolsTest.StandardDeviationTest3 C# (CSharp) Method

StandardDeviationTest3() private method

private StandardDeviationTest3 ( ) : void
return void
        public void StandardDeviationTest3()
        {
            short[,] values =
            {
                { 5, 2, 7 },
                { 5, 3, 5 },
                { 1, 1, 2 }
            };

            Rectangle rect = new Rectangle(1, 1, 2, 1);

            Bitmap image = values.ToBitmap();
            double mean = Measures.Mean(new double[] { 3, 5 });
            double expected = Measures.StandardDeviation(new double[] { 3, 5 });
            double actual = Tools.StandardDeviation(image, rect, mean);
            Assert.AreEqual(expected, actual);
        }