private void DrawDataPoints(List <EMPoint> dataPoints) { for (int i = 0; i < dataPoints.Count; i++) { CanvasBackground.DrawDataPoint((float)dataPoints[i].Value, dataPoints[i].Color); } PCT_CANVAS.Image = CanvasBackground.Curves; }
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(); }
private void DrawCurves(List <PointF> dataFile, Color color) { CanvasBackground.DrawCurve(dataFile, color); PCT_CANVAS.Image = CanvasBackground.Curves; }
private void DrawInfo(MyData dataFile) { CanvasBackground.DrawHistogram(dataFile); DrawCurves(dataFile.GaussPoints, Color.GhostWhite); UpdateInfo(dataFile.Stats); }
private void ReDraw() { CanvasBackground.CleanCanvasImage(); PCT_CANVAS.BackgroundImage = CanvasBackground.BMP; PCT_CANVAS.Image = CanvasBackground.Curves; }
private void InitializeGraphics() { CanvasBackground.TransformScale(PCT_CANVAS.ClientSize.Width, PCT_CANVAS.ClientSize.Height); ReDraw(); }