![]() |
NMSIS-DSP
Version 1.6.0
NMSIS DSP Software Library
|
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. More...
Functions | |
| float16_t | riscv_linear_interp_f16 (const riscv_linear_interp_instance_f16 *S, float16_t x) |
| Process function for the floating-point Linear Interpolation Function. More... | |
| float32_t | riscv_linear_interp_f32 (const riscv_linear_interp_instance_f32 *S, float32_t x) |
| Process function for the floating-point Linear Interpolation Function. More... | |
| q15_t | riscv_linear_interp_q15 (const q15_t *pYData, q31_t x, uint32_t nValues) |
| Process function for the Q15 Linear Interpolation Function. More... | |
| q31_t | riscv_linear_interp_q31 (const q31_t *pYData, q31_t x, uint32_t nValues) |
| Process function for the Q31 Linear Interpolation Function. More... | |
| q7_t | riscv_linear_interp_q7 (const q7_t *pYData, q31_t x, uint32_t nValues) |
| Process function for the Q7 Linear Interpolation Function. More... | |
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.
S points to an instance of the Linear Interpolate function data structure. x is the input sample value. The functions returns the output value.| float16_t riscv_linear_interp_f16 | ( | const riscv_linear_interp_instance_f16 * | S, |
| float16_t | x | ||
| ) |
Process function for the floating-point Linear Interpolation Function.
| [in,out] | S | is an instance of the floating-point Linear Interpolation structure |
| [in] | x | input sample to process |
| float32_t riscv_linear_interp_f32 | ( | const riscv_linear_interp_instance_f32 * | S, |
| float32_t | x | ||
| ) |
Process function for the floating-point Linear Interpolation Function.
| [in,out] | S | is an instance of the floating-point Linear Interpolation structure |
| [in] | x | input sample to process |
Process function for the Q15 Linear Interpolation Function.
| [in] | pYData | pointer to Q15 Linear Interpolation table |
| [in] | x | input sample to process |
| [in] | nValues | number of table values |
x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. This function can support maximum of table size 2^12. Process function for the Q31 Linear Interpolation Function.
| [in] | pYData | pointer to Q31 Linear Interpolation table |
| [in] | x | input sample to process |
| [in] | nValues | number of table values |
x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. This function can support maximum of table size 2^12. Process function for the Q7 Linear Interpolation Function.
| [in] | pYData | pointer to Q7 Linear Interpolation table |
| [in] | x | input sample to process |
| [in] | nValues | number of table values |
x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. This function can support maximum of table size 2^12.