DSP Run-Time Library Reference
gen_gaussian
generate gaussian window
Synopsis
#include <window.h>
void gen_gaussian_fr16(w,alpha,a,N)
fract16 w[];
float alpha;
int a;
int N;
Description
This function generates a vector containing the Gaussian 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
1
=
−
w
(
n
)
exp
2
where n = {0, 1, 2, ..., N-1} and α is an input parameter
Domain
a > 0; N > 0; α > 0.0
4-66
/* Window vector
/* Gaussian alpha parameter
/* Address stride in samples for window vector */
/* Length of window vector
is used to space the window values within the output
a
2
−
−
n
N
2 /
1
2 /
α
N
2 /
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
*/
*/
*/
, and the
N
.
N*a
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?