HTBasic Help
×
Menu
Index
W_trapezoid
Trapezoid window.
 
Loading        LOADSUB ALL FROM "W_TRAPEZ.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB W_trapezoid FROM "MATHLIB.HTS"
 
Usage                REAL A(*),B(*)
REAL H,P
CALL W_trapezoid(A(*),H,P,B(*))
 
Description                
W_trapezoid multiplies the sequence in array A by a trapezoid window function of parameters p and h and returns the product in array B. Array A is unmodified. H is the peak-to-peak amplitude of the untruncated trapezoid portion of the window. P is the value of the pedestal portion of the window. H and p must be between 0 and 1, inclusive.
 
The window generated by the W_bartlett routine is a special case of the trapezoid window, with p = 0 and h = 1.
 
Errors                Trapezoid window for h=0.875 and N=128
         
W_trapezoid causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or if h and p are not in the ranges discussed above.
 
See Also
Waveform, W_bartlett