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.)