Exemple #1
0
        public Form1()
        {
            PerceptronClass p = new PerceptronClass();

            InitializeComponent();
            bitmap = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            pictureBox1.DrawToBitmap(bitmap, pictureBox1.Bounds);
        }
Exemple #2
0
        void setup()
        {
            //size(800, 800);
            brain = new PerceptronClass();

            for (int i = 0; i < points.Count(); i++)
            {
                //points[i] = new Point();
            }

            float[] inputs = { -1, 0.5f };
            int     guess  = brain.Guess(inputs);
            //println(guess);
        }