New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in cubic spline interpolator? #3790
Comments
Adding more context, I think the issue may be that ScottPlot/src/ScottPlot4/ScottPlot/Statistics/Interpolation/Cubic.cs Lines 85 to 95 in 093994e
Perhaps the fix is to add: C[n - 1] = 1.0f / (x[n] - x[n-1]); |
Actually I'm not going to worry about this. That code is only in ScottPlot 4. There is a more elegant method in ScottPlot 5 that leans on SkiaSharp ScottPlot/src/ScottPlot5/ScottPlot5/PathStrategies/CubicSpline.cs Lines 1 to 85 in 34393d9
|
@Marco-Sanguinetti recently commented the following on a blog post of mine swharden/SWHarden.com#27
The referenced code is also in ScottPlot, here
ScottPlot/src/ScottPlot4/ScottPlot/Statistics/Interpolation/Cubic.cs
Lines 99 to 106 in 093994e
This issue will track better understanding this issue and coming up with a fix. I'll ping @drolevar in case they're interested in providing feedback, but they recently contributed some great related work in #3623 #3629
The text was updated successfully, but these errors were encountered: