IT++ Logo Newcom Logo

Windowing Functions

Windowing functions. More...

Functions

vec itpp::hamming (int size)
 Hamming window.
vec itpp::hanning (int n)
 Hanning window.
vec itpp::hann (int n)
 Hanning window compatible with matlab.
vec itpp::blackman (int n)
 Blackman window.
vec itpp::triang (int n)
 Triangular window.
vec itpp::sqrt_win (int n)
 Square root window.

Detailed Description

Windowing functions.


Function Documentation

vec itpp::hamming ( int  size  ) 

Hamming window.

The n size Hamming window is a vector $w$ where the $i$th component is

\[ w_i = 0.54 - 0.46 \cos(2\pi i/(n-1)) \]

Definition at line 39 of file window.cpp.

References itpp::cos(), and itpp::pi.

Referenced by itpp::fir1(), and itpp::jake_filter().

vec itpp::hanning ( int  n  ) 

Hanning window.

The n size Hanning window is a vector $w$ where the $i$th component is

\[ w_i = 0.5(1 - \cos(2\pi (i+1)/(n+1)) \]

Observe that this function is not the same as the hann() function which is defined as in matlab.

Definition at line 52 of file window.cpp.

References itpp::cos(), and itpp::pi.

Referenced by itpp::spectrum().

vec itpp::hann ( int  n  ) 

Hanning window compatible with matlab.

The n size Hanning window is a vector $w$ where the $i$th component is

\[ w_i = 0.5(1 - \cos(2\pi i/(n-1)) \]

Definition at line 63 of file window.cpp.

References itpp::cos(), and itpp::pi.

vec itpp::blackman ( int  n  ) 

Blackman window.

The n size Blackman window is a vector $w$ where the $i$th component is

\[ w_i = 0.42 - 0.5\cos(2\pi i/(n-1)) + 0.08\cos(4\pi i/(n-1)) \]

Definition at line 73 of file window.cpp.

References itpp::cos(), and itpp::pi.

vec itpp::triang ( int  n  ) 

Triangular window.

The n size triangle window is a vector $w$ where the $i$th component is

\[ w_i = w_{n-i-1} = \frac{2(i+1)}{n+1} \]

for n odd and for n even

\[ w_i = w_{n-i-1} = \frac{2i+1}{n} \]

Definition at line 83 of file window.cpp.

vec itpp::sqrt_win ( int  n  ) 

Square root window.

The square-root of the Triangle window. sqrt_win(n) = sqrt(triang(n))

Definition at line 98 of file window.cpp.

References itpp::sqrt().

SourceForge Logo

Generated on Thu Apr 19 14:43:47 2007 for IT++ by Doxygen 1.5.1