Exemplo n.º 1
0
        //private void BTN_CLASSIFY_Click(object sender, EventArgs e)
        //{
        //    ClassifySpace();
        //}

        private void ClassifySpace()
        {
            double value;

            for (int x = -35; x < 35; x++)
            {
                for (int y = -35; y < 35; y++)
                {
                    if (x == 1 && y == 1)
                    {
                        Console.Write("here");
                    }
                    if (x == -1 && y == 1)
                    {
                        Console.Write("here");
                    }

                    value = net.ComputeNetworkOutput(new Input(new double[] { x, y }, new double[] { 1 }))[0];
                    PaintPoint(x, y, value);
                }
            }
            PaintInput();

            MyDelegates.SetBMPValue(PCT_CANVAS, canvas);
        }