Exemplo n.º 1
0
        private void tsRepeatClick(object sender, EventArgs e)
        {
            KillThreads();
            //map = KohonenMap.InitializeMap(pictureBox1.Width, pictureBox1.Height);
            kohMap = new KohonenMap(pictureBox1.Width, pictureBox1.Height);

            CreateThreads();
            //newThread1 = new Thread(DrawMap) { IsBackground = true };
            //newThread1.Start();
            //newThread2 = new Thread(FillNetwork) {IsBackground = true};
            //newThread2.Start();
        }
Exemplo n.º 2
0
        private void InitializeCustom()
        {
            InitializeImage();

            Elem.ElemSize = 3;
            ControlSet    = InitializeControlSet();
            kohMap        = new KohonenMap(pictureBox1.Width, pictureBox1.Height);

            //map = KohonenMap.InitializeMap(width, height);
            //var maxSize = Math.Max(height, width);
            //radius = Math.Sqrt(Math.Pow(maxSize >> 1, 2)*2)/2;
        }
Exemplo n.º 3
0
 private void tsStartClick(object sender, EventArgs e)
 {
     tsStart.Enabled = false;
     kohMap          = new KohonenMap(pictureBox1.Width, pictureBox1.Height);
     CreateThreads();
 }