HTBasic Help
×
Menu
Index
W_bartlett
Bartlett window.
 
Loading        LOADSUB ALL FROM "W_TRAPEZ.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB W_bartlett FROM "MATHLIB.HTS"
 
Usage                REAL A(*),B(*)
CALL W_bartlett(A(*),B(*))
 
Description                
W_bartlett multiplies the sequence in array A by a Bartlett 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.
 
If the array B contains more elements than A, the extra elements in B are unmodified.
 
The Bartlett window is a special case of the window generated by the W_trapezoid routine.
 
                                         Bartlett window for N=128
Errors
W_bartlett causes an HTBasic error if its arguments are not both REAL arrays or if B contains fewer elements than A.
 
See Also
Waveform, W_blackman, W_cosine, W_hamming, W_hanning, W_trapezoid