假设我有一个双精度数组,什么是使用Akima interpolation来抽样这个系列的好算法?我太愚蠢了,不能将数学描述翻译成代码。双数阵列的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)
{
...?
}
它看起来像一个大量的工作,没有人会只编写了你。它看起来非常直截了当,但一些好的编码时间才能完成。不要犹豫,问你是否有一个你不明白的具体事情。 – 2010-08-17 19:14:40
@Albin,我想是够了。立方插值就像10行代码,我希望所有这个数学可以精简到20行...... – 2010-08-17 19:50:38