Example #1
0
        private void InitializeEM()
        {
            TreeNode node;

            clusters = int.Parse(TXT_CLUSTERS.Text);
            emMax    = new EM(clusters);

            TREE_EM.Nodes.Clear();
            CanvasBackground.CleanCanvasImage();
            for (int i = 0; i < clusters; i++)
            {
                node           = new TreeNode(EM.Stats[i].Name);
                node.BackColor = EM.Stats[i].Color;
                node.Tag       = EM.Stats[i];

                node.Checked = true;
                DrawCurves(EM.Stats[i].GaussianPoints, EM.Stats[i].Color);
                TREE_EM.Nodes.Add(node);
            }

            InitPoints();
            LBL_TOTAL.Text = emMax.Points.Count.ToString();
        }
Example #2
0
 private void ReDraw()
 {
     CanvasBackground.CleanCanvasImage();
     PCT_CANVAS.BackgroundImage = CanvasBackground.BMP;
     PCT_CANVAS.Image           = CanvasBackground.Curves;
 }