module RemiAudio::Interpolate
Extended Modules
Defined in:
remiaudio/interpolation.crInstance Method Summary
-
#bspline(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs B-Spline interpolation.
-
#cubic(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs cubic interpolation.
-
#hermite(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs hermite interpolation.
-
#hermiteAlt(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs hermite interpolation.
-
#linear(x1 : Float64, x2 : Float64, mu : Float64) : Float64
Performs linear interpolation.
-
#optimal2x4P2O(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs optimal 4-point 2nd order interpolation.
-
#optimal32x4P4O(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs optimal 4-point 4th order interpolation.
-
#parabolic2x(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
Performs parabolic interpolation.
Instance Method Detail
def bspline(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs B-Spline interpolation.
def cubic(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs cubic interpolation.
def hermite(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs hermite interpolation.
def hermiteAlt(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs hermite interpolation.
This is an alternate version with slightly different coefficients.
def optimal2x4P2O(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs optimal 4-point 2nd order interpolation. This expects 2x oversampled data.
def optimal32x4P4O(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs optimal 4-point 4th order interpolation. This expects 32x oversampled data.
def parabolic2x(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64
#
Performs parabolic interpolation. This expects 2x oversampled data.