WPF Charting Documentation - SciChart WPF Charts SDK v5.x
Spline Interpolation Filters

Spline Interpolation Filter

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
}

 

 


SCICHART ® is a Registered Trademark in the UK, US and EEC. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!