Exemple #1
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     sP        = new simplePerceptron(3);
     lRes.Text = "\r\nW1 = " + sP.getWeightEntry(0).ToString(doublePrecision) +
                 "\r\nW2 = " + sP.getWeightEntry(1).ToString(doublePrecision) +
                 "\r\nW3 = " + sP.getWeightEntry(2).ToString(doublePrecision);
 }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();
            data = new List <List <double> >();
            data.Add(new List <double>());
            data.Add(new List <double>());

            sP         = new simplePerceptron(3);
            pBox.Image = new Bitmap(pBox.Width, pBox.Height);
            g          = Graphics.FromImage(pBox.Image);
            Pen pen = new Pen(Color.White, 1);

            g.FillRectangle(pen.Brush, 0, 0, pBox.Width, pBox.Width);
        }