HTBasic Help
×
Menu
Index
W_hamming
Hamming window.
 
Loading        LOADSUB ALL FROM "W_COSINE.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB W_hamming FROM "MATHLIB.HTS"
 
Usage                REAL A(*),B(*)
CALL W_hamming(A(*),B(*))
 
Description                
W_hamming multiplies the sequence in array A by the Hamming window function and returns the product in array B. Array A is unmodified. If N is the number of elements in the array A and k is the position in the array B, the formula for the window function, wk, is
In the above formula, k ranges in value from 0 to N - 1.
 
The Hamming window is the same as the cosine window with the parameter r set to 0.46.
 
                 Hamming window for N=128
         
Errors
W_hamming causes an HTBasic error if its arguments are not both REAL arrays or if B contains fewer elements than A.
 
See Also
Waveform, W_bartlett, W_blackman, W_cosine, W_hanning