Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

How to set boundaries for interpolation / extrapolation?

$
0
0

I have the following code:

LinearSpline spline = LinearSpline.InterpolateSorted(new double[] { 0, 1, 2, 4 }, new double[] { 
-0.5, -0.5, -0.3, -0.2 });

spline.Interpolate(10);

I want to get “-0.2” as result instead of “0,099”. How can I set the right and lefts boundaries?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles