Cubic Hermite interpolation using y[0]..y[3].
More...
#include <ResampleStreamT.h>
Cubic Hermite interpolation using y[0]..y[3].
Valid for xf in [0,3].
◆ addValue()
| void addValue |
( |
float |
value | ) |
|
|
inlineinherited |
Adds a new value to the buffer, discarding the oldest.
- Parameters
-
| value | The new sample value to add. |
◆ begin()
Constructor. Initializes the buffer with four zeros.
◆ getValue()
Gets the next interpolated value.
- Parameters
-
| newValue | Reference to store the interpolated value. |
- Returns
- True if a value was produced, false if more input is needed.
◆ operator bool()
Returns true if there are more values to read.
◆ setStepSize()
| void setStepSize |
( |
float |
step | ) |
|
|
inlineinherited |
Sets the step size for interpolation.
- Parameters
-
◆ value()
Computes the cubic Hermite interpolation.
- Parameters
-
| y | Pointer to at least 4 values. |
| xf | The fractional index for interpolation. |
- Returns
- Interpolated value.
Implements BaseInterpolator.
◆ valueExt()
◆ vectorSize()
Minimum number of values required for interpolation.
Implements BaseInterpolator.
◆ step
◆ step_size
Step size for resampling, default is 1.0.
◆ values
Buffer holding the last 4 values for interpolation.
The documentation for this struct was generated from the following file: