public void AddPlot(string dataName, IStatisticalData[] data, bool holdOn) { if (!holdOn) { chartData.Series.Clear(); } if (string.IsNullOrEmpty(dataName)) { dataName = Guid.NewGuid().ToString(); } Series plotSeries; plotSeries = chartData.Series.Add(dataName); plotSeries.ChartType = SeriesChartType.ErrorBar; for (int i = 0; i < data.Length; i++) { double midValue = data[i].Mean; double delta = data[i].StandardDeviation; plotSeries.Points.AddY(midValue, midValue - delta, midValue + delta); } }
internal HarmonicData(int harmonicOrder, double R, double stdDeviation) { Order = harmonicOrder; harmonyData = new StatisticalData(R, stdDeviation); }