Quantcast
Viewing all articles
Browse latest Browse all 224

How to interpolate onto a (1D) array of points?

@ahnugent wrote:

I want to use CubicSpline.InterpolateHermiteSorted or CubicSpline.InterpolateAkimaSorted for real-time resampling of a sequence of points acquired from an IMU. In the interest of speed, it would be logical to compute (i.e. train) the interpolation function in one step, then apply it to the sequence in the next step.

However, it seems to me that because these methods are static and take only a scalar double parameter, I would be forced to invoke the fitting computation once for every target point -- even though the training data have not changed between points in the target sequence.

Am I missing something here? (BTW: I haven't managed to find any documentation with examples -- only the API spec.)

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 224