gen_hamming
generate hamming window
Synopsis
#include <window.h>
void gen_hamming_fr16(w,a,N)
fract16 w[];
int a;
int N;
Description
This function generates a vector containing the Hamming window. The
length of the window required is specified by the parameter
stride parameter
vector
. The length of the output vector should therefore be
w
Algorithm
=
−
w n
[ ]
0 54 0 46
.
.
where n = {0, 1, 2, ..., N-1}
Domain
a > 0; N > 0
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* Window vector
/* Address stride in samples for window vector */
/* Length of window vector
is used to space the window values within the output
a
π
2
n
cos
−
N
1
DSP Run-Time Library
, and the
N
.
N*a
*/
*/
4-67
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?