Interpolant
Abstract base class of interpolants over parametric samples.
The parameter domain is one dimensional, typically the time or a path along a curve defined by the data. The sample values can have any dimensionality and derived classes may apply special interpretations to the data.
This class finds the interval that holds the position. Subclasses do the actual interpolation in interpolate_.
Time complexity is O(1) for linear access crossing at most two points and O(log N) for random access, where N is the number of positions.
Instances are mutable and not thread-safe. Use each instance, and the buffers it wraps, from one thread only. resultBuffer is reused, and each evaluate call overwrites it.
See the Template Method pattern.
Parameters
The parameter positions holding the interpolation factors.
The sample values.
The number of values in one sample (the stride).
The result buffer; defaults to a fresh DoubleArray(sampleSize).
Inheritors
Constructors
Properties
The default settings object. Overridden by CubicInterpolant.
The parameter positions.
The result buffer. Reused across calls; overwritten by every evaluate.
The sample values.
The interpolation settings. null until assigned; getSettings_ then falls back to DefaultSettings_.
Functions
Copies a sample value to the result buffer.
Evaluates the interpolant at position t.
Returns the interpolation settings.