internal override void UpdatePlotData(Telerik.Windows.Data.RadObservableCollection <PlotInfo> dataCollection, Plot2DRange plotRange, uint samplesCount) { if (!this.IsValid) { return; } dataCollection.SuspendNotifications(); dataCollection.Clear(); double step = (plotRange.YMax - plotRange.YMin) / samplesCount; for (double y = plotRange.YMin; y <= plotRange.YMax; y += step) { double x = this.F(y); if (Double.IsInfinity(x) || Double.IsNaN(x)) { continue; } dataCollection.Add(new PlotInfo(x, y)); } dataCollection.ResumeNotifications(); }
internal abstract void UpdatePlotData(Telerik.Windows.Data.RadObservableCollection <PlotInfo> dataCollection, Plot2DRange plotRange, uint samplesCount);