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