예제 #1
0
 public Form1()
 {
     InitializeComponent();
     hNet        = new HopfieldNet(netSize);
     activeImage = new bool[netSize * netSize];
     inputImages = hNet.Images;
 }
예제 #2
0
 private void Recalculate_Click(object sender, EventArgs e)
 {
     netSize     = (int)ImageSizeBox.Value;
     hNet        = new HopfieldNet(netSize);
     activeImage = new bool[netSize * netSize];
     inputImages = hNet.Images;
     pictureBox1.Refresh();
 }