几种常见的插值法
线性插值
X = (A + B) / 2
cos插值
X = A * {1 - [1 - cos(X * pi)] / 2} + B * [1 - cos(X * pi)] / 2
三次多项式插值
X = [(B' - B) - (A' - A)] * X^3 + {(A' - A) - [(B' - B) - (A' - A)]} * X^2 + (B - A') * X + A
X = (A + B) / 2
X = A * {1 - [1 - cos(X * pi)] / 2} + B * [1 - cos(X * pi)] / 2
X = [(B' - B) - (A' - A)] * X^3 + {(A' - A) - [(B' - B) - (A' - A)]} * X^2 + (B - A') * X + A