pytimbre.utilities.yin.parabolic_interpolation¶
- pytimbre.utilities.yin.parabolic_interpolation(y1, y2, y3)¶
Parabolic interpolation of an extremal value given three samples with equal spacing on the x-axis. The middle value y2 is assumed to be the extremal sample of the three.
- Parameters:
y1 (f(x1))
y2 (f(x2))
y3 (f(x3))
- Returns:
x_interp (Interpolated x-value (relative to x3-x2))
y_interp (Interpolated y-value, f(x_interp))