HTBasic Help
×
Menu
Index
W_hanning
Hanning window.
 
Loading        LOADSUB ALL FROM "W_COSINE.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB W_hanning FROM "MATHLIB.HTS"
 
Usage                REAL A(*),B(*)
CALL W_hanning(A(*),B(*))
 
Description                
W_hanning multiplies the sequence in array A by the Hanning 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 Hanning window is the same as the cosine window with the parameter r set to 0.5.
 
                 Hanning window for N=128
         
Errors
       
W_hanning causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or if B contains fewer elements than A.
 
See Also
Waveform, W_bartlett, W_blackman, W_cosine, W_hamming