Is there an algorithm or implementation? I have searched the monotone cubic interpolation or monotone piecewise cubic interpolation. It seems that both the two methods cannot preserve the derivatives at the two given points. I am not really sure about this, because I am not a mathematician. Can you provide some information or ideas? Anything will be greatly appreciated.
Asked
Active
Viewed 733 times
1
-
What exactly do you want? Are you given two points $(x_1,y_1)$ and $(x_2,y_2)$ with $x_1<x_2$ and $y_1<y_2$, as well as numbers $a>0$, $b>0$ and you want a smooth function $f$ such that $f(x_1)=y_1$, $f(x_2)=y_2$, $f'(x_1)=a$, $f'(x_2)=b$, $f'(x)>0$ for all $x\in[a,b]$? – Hagen von Eitzen Feb 01 '13 at 15:55
-
yes, exactly what i want – user1446072 Feb 02 '13 at 04:51
1 Answers
1
I just found Bézier curve meet my requirements perfectly and is really simple for implementation.
user1446072
- 21