gen_bartlett
generate bartlett window
Synopsis
#include <window.h>
void gen_bartlett_fr16(w,a,N)
fract16 w[];
int a;
int N;
Description
This function generates a vector containing the Bartlett 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
The Bartlett window is similar to the Triangle window (see
on page
4-72) but has the following different properties:
• The Bartlett window always returns a window with two zeros on
either end of the sequence, so that for odd
an
Bartlett window equals an
N+2
• For even
angular sequences. There is no standard definition for the Triangle
window for even
steeper than those of the Bartlett window.
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
, the Bartlett window is still the convolution of two rect-
n
; the slopes of the Triangle window are slightly
n
DSP Run-Time Library
, the center section of
n
Triangle window.
N
*/
*/
, and the
N
.
N*a
"gen_triangle"
4-63
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?