hamming

Hamming windowing function.

Syntax

hamming(vec_expr)

Argument

vec_expr
A valid vector expression.

Example

Curve Math Vectors Result
x = c1.x

y = fftmag(hamming(c1.y))

Given c1, a curve is created which is the original curve windowed using the Hamming window function.

Comments

The resultant vector is vec_expr multiplied by the Hamming window function. This function is given by:



where w is the windowing function and N is the number of elements in vec_expr. Windowing functions are normally used in conjunction with frequency operations. A Hamming windowing function is shown below.

Figure 1.


The resulting curve is power-normalized, in other words, the root mean square (RMS) of the original curve equals the RMS of the resulting curve. The mean is subtracted from the input before windowing in order to eliminate DC bias.