The Hamming window is a modified version of the Hanning window. The shape of the Hamming window is similar to that of a cosine wave. The following equation defines the Hamming window.
for n = 0, 1, 2, …, N - 1
where N is the length of the window and w is the window value.
The following figure shows a Hamming window with N = 32.
The Hanning and Hamming windows are similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window.