public SimpleBoxPlotObject(SimplePlot graph, int x, List<float> vals, string label) { Label = label; SimplePlot = graph; SimplePlot.AddObject(this); _x = x; float[] valarray = vals.ToArray(); Array.Sort(valarray); int n = valarray.Length; _n = n; if (n > 0) { _p25 = MathSupportFunctions.PercentilePreSorted(valarray, 25); // valarray[N / 4]; _p50 = MathSupportFunctions.PercentilePreSorted(valarray, 50); _p75 = MathSupportFunctions.PercentilePreSorted(valarray, 75); _iqr = _p75 - _p25; } _gps = new GraphPointSet(graph); float llimit = _p25 - 1.5f*_iqr; float ulimit = _p75 + 1.5f*_iqr; _min = float.MaxValue; _max = float.MinValue; for (int i = 0; i < n; i++) { float v = vals[i]; if (v < llimit || v > ulimit) { _gps.AddPoint(new PointF(x, v), i); } else { if (v < _min) _min = v; if (v > _max) _max = v; } } }
public ACGTLegend(SimplePlot simplePlot, Color colorA, Color colorC, Color colorG, Color colorT) : base(simplePlot) { SimplePlot = simplePlot; SimplePlot.AddObject(this); _colorA = colorA; _colorC = colorC; _colorG = colorG; _colorT = colorT; }
public GraphPointSet(SimplePlot simplePlot, Color color) : base(simplePlot) { SimplePlot = simplePlot; SimplePlot.AddObject(this); Color = color; }
/// <summary> /// Constructor. Associates this object with the specified base graph, /// and adds this object to that graph control's object list /// </summary> /// <param name="simplePlot">The parent graph that this object will be associated with</param> protected GraphObject(SimplePlot simplePlot) { SimplePlot = simplePlot; }
public GraphPointSet(SimplePlot simplePlot) : base(simplePlot) { SimplePlot.AddObject(this); }