Skip to content

Interpolation: cubic spline interpolation#1577

Merged
swharden merged 6 commits intomasterfrom
1433-interpolation
Jan 23, 2022
Merged

Interpolation: cubic spline interpolation#1577
swharden merged 6 commits intomasterfrom
1433-interpolation

Conversation

@swharden
Copy link
Member

I added a cubic interpolation module using adapted from MIT-licensed code I found online originally written by Ryan Seghers

Example: Random Walk X and Y

old code new code
image image

Example: Continuous X, Normal Random Y

old code new code
InvalidOperationException image

@swharden
Copy link
Member Author

@swharden swharden linked an issue Jan 23, 2022 that may be closed by this pull request
@swharden
Copy link
Member Author

swharden commented Jan 23, 2022

image

New Interpolation Method

(double[] smoothXs, double[] smoothYs) = ScottPlot.Statistics.Interpolation.Cubic.InterpolateXY(xs, ys, 200);

@swharden swharden merged commit 2f9205d into master Jan 23, 2022
@swharden swharden deleted the 1433-interpolation branch January 23, 2022 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interpolation of more then 160 points triggers exception

1 participant