1.4.2.46 DSP_TransformWinInit_Bart32 Function
Create a Bartlett window.
Description
void DSP_TransformWinInit_Bart32(int32_t *OutWindow, int N);
Create a N-element Bartlett (Triangle) Window, and store the output to OutWindow. Operations are performed at higher resolution floating point, and rounded for the most accuracy possible. Output values Q31 fractional format. The Bartlett Window follows the equation:
Window(n) = 1 - (abs(2*n - N)/N) where n is the window sample number, N is the total number of samples
Preconditions
N must be a positive number. OutWindow must be declared with N elements or larger.
Parameters
OutWindow pointer to output array of elements (int32_t)
N number of samples (int)
Returns
None.
Remarks
This function is performed in C. The function may be optimized for the library. It is dependent on the floating point math library.
The functional window is an intermediate result that needs to be multiplied by an input vector prior to FFT processing. Because of significant processing time the window need only be computed once and the multiply of the (window * input) vector done during recurring loop processing.
C
void DSP_TransformWinInit_Bart32 (int32_t * OutWindow , int N );