public Form1() { PerceptronClass p = new PerceptronClass(); InitializeComponent(); bitmap = new Bitmap(pictureBox1.Width, pictureBox1.Height); pictureBox1.DrawToBitmap(bitmap, pictureBox1.Bounds); }
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); }