Example #1
0
        private void BtnObjectTest_Click(object sender, RoutedEventArgs e)
        {
            Board             board1     = new Board();
            Bread             bread1     = new Bread();
            Cut               cut1       = new Cut();
            BreadBlob         breadBlob1 = new BreadBlob();
            StaticsCalculator statCalc   = new StaticsCalculator();

            byte[,] blobFound = new byte[50, 50];

            breadBlob1.PixelArray = blobFound;
            lblCount.Content      = breadBlob1.Variance.All;

            //board1.Size.Height;
            board1.breadList.Add(bread1);
            bread1.cutList.Add(cut1);

            //lblCount.Content = board1.breadList.Count;

            board1.breadList[0].cutList[0].Angle_Plow = 1;
            //board1.Location.X = 5;

            statCalc.Add(9);
            statCalc.Add(2);
            statCalc.Add(5);
            statCalc.Add(4);
            statCalc.Add(12);
            statCalc.Add(7);
            statCalc.Add(8);
            statCalc.Add(11);
            statCalc.Add(9);
            statCalc.Add(3);
            statCalc.Add(7);
            statCalc.Add(4);
            statCalc.Add(12);
            statCalc.Add(5);
            statCalc.Add(4);
            statCalc.Add(10);
            statCalc.Add(9);
            statCalc.Add(6);
            statCalc.Add(9);
            statCalc.Add(4);
            List <byte> tempList;

            tempList = statCalc.NumberList;
            //lblAllMuffinStat.Content = statCalc.Variance;
            lblAllMuffinStat.Content = tempList.Count;
            lblAccordStdDev.Content  = statCalc.CalculateWhat();
        }