Spline Interpolation Filters
The Spline Interpolation filter interpolates your data by a factor of N (where N is passed into the spline filter). The result is a smoother waveform with higher resolution than the original waveform.
To spline interpole your data using the Filters API, use the following code.
Offset Filter |
Copy Code
|
---|---|
using SciChart.Charting.Model.Filters; // Required for extension method .ToSpline() var dataSeries = new XyDataSeries<double,double>(); // Original Data dataSeries.Append(0,1); dataSeries.Append(2,2); int numInterpolationPoints = 5; var splineSeries = dataSeries.ToSpline(numInterpolationPoints); // Compute the spline. var lineRenderableSeries = new FastLineRenderableSeries() { DataSeries = splineSeries , // Apply the Spline Data to a Line Series } |