double の配列があると仮定すると、 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)
{
...?
}