代码之家  ›  专栏  ›  技术社区  ›  David Rutten

双精度数组的Akima插值

  •  10
  • David Rutten  · 技术社区  · 15 年前

    假设我有一个双精度数组,那么用什么样的算法对这个系列进行采样呢? Akima interpolation ?我太笨了,不能把数学描述翻译成代码。

    // 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)
    {
      ...?
    }
    
    2 回复  |  直到 9 年前
        1
  •  27
  •   Community CDub    8 年前
        2
  •  7
  •   Kris    14 年前

    得到一些 hits 在谷歌代码搜索,但这不是一个领域,我知道很多。第一个结果是 Math.NET 可能会引起一些兴趣。

    推荐文章