Kevin Macon's trapezoidal filtering code for waveform analysis out of digitizers. And helpful tidbits added by me.