CMSIS-DSP
Version 1.9.0
CMSIS DSP Software Library
|
CMSIS DSP Software Library – Linear Interpolate Example
Description This example demonstrates usage of linear interpolate modules and fast math modules. Method 1 uses fast math sine function to calculate sine values using cubic interpolation and method 2 uses linear interpolation function and results are compared to reference output. Example shows linear interpolation function can be used to get higher precision compared to fast math sin calculation.
testInputSin_f32
points to the input values for sine calculation testRefSinOutput32_f32
points to the reference values caculated from sin() matlab function testOutput
points to output buffer calculation from cubic interpolation testLinIntOutput
points to output buffer calculation from linear interpolation snr1
Signal to noise ratio for reference and cubic interpolation output snr2
Signal to noise ratio for reference and linear interpolation output