W_hammingmultiplies the sequence in arrayAby the Hamming window function and returns the product in arrayB. ArrayAis unmodified. IfNis the number of elements in the arrayAandkis the position in the arrayB, the formula for the window function,wk, is
In the above formula,kranges in value from 0 toN- 1.
The Hamming window is the same as the cosine window with the parameterrset to 0.46.
Hamming window forN=128
Errors
W_hammingcauses an HTBasic error if its arguments are not both REAL arrays or ifBcontains fewer elements thanA.