W_trapezoidmultiplies the sequence in arrayAby a trapezoid window function of parameterspandhand returns the product in arrayB. ArrayAis unmodified.His the peak-to-peak amplitude of the untruncated trapezoid portion of the window.Pis the value of the pedestal portion of the window.Handpmust be between 0 and 1, inclusive.
The window generated by theW_bartlettroutine is a special case of the trapezoid window, withp= 0 andh= 1.
Errors Trapezoid window forh=0.875 andN=128
W_trapezoidcauses an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or ifhandpare not in the ranges discussed above.