Interpolation over an array (or two)

后端 未结 8 620
闹比i
闹比i 2020-12-10 15:27

I\'m looking for a java library or some help to write my own interpolation function. That is I have two arrays of doubles which are potentially different sizes, but are ord

8条回答
  •  天涯浪人
    2020-12-10 16:11

    Simple linear interpolation can be calculated using something like:

    Point2D interp1_lin(Point2D p1, Point2D p2, double x) {
     //Pre conditions
    assert p1.x

    Does this help?

提交回复
热议问题