DSP Run-Time Library Reference
gen_triangle
generate triangle window
Synopsis
#include <window.h>
void gen_triangle_fr16(w,a,N)
fract16 w[];
int a;
int N;
Description
This function generates a vector containing the Triangle window. The
length of the window required is specified by the parameter
stride parameter
vector
.
w
Refer to the Bartlett window
between it and the Triangle window.
Algorithm
For even
, the following equation applies:
n
+
2
n
N
[ ] =
w n
−
2
N
2
N
where n = {0, 1, 2, ..., N-1}
4-72
/* Window vector
/* Address stride in samples for window vector */
/* Length of window vector
is used to space the window values within the output
a
(on page
1
<
n
N
2
−
n
1
>
n
N
2
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
4-63) regarding the relationship
for ADSP-219x DSPs
*/
*/
, and the
N
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?