一组双打的Akima插值

Dav*_*ten 10 c# interpolation spline

假设我有一个双打数组,使用Akima插值对这个系列进行采样的好算法是什么?将这些数学描述翻译成代码我太愚蠢了.

// values is an array of doubles
// idx is the index of the left-hand value for the current interpolation
// t is the normalized parameter between values[idx] and values[idx+1]
// Don't worry about array bounds, I'll handle that separately.
public double InterpolateAkima(double[] values, int idx, double t)
{
  ...?
}
Run Code Online (Sandbox Code Playgroud)

Kri*_*is 7

在谷歌代码搜索上获得了一些点击,但这不是我非常了解的领域.Math.NET的第一个结果可能会引起一些兴趣.

  • +1:Math.NET确实有一个实现 (3认同)