![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
Linear interpolation is a method of curve fitting using linear polynomials. Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line
y = y0 + (x - x0) * ((y1 - y0)/(x1-x0)) where x0, x1 are nearest values of input x y0, y1 are nearest values to output y
S
points to an instance of the Linear Interpolate function data structure. x
is the input sample value. The functions returns the output value.