Emulates a single pole analog high pass filter.
SHP(series, fc)
series |
- |
A series or table. |
fc |
- |
A real, the cutoff frequency in Hertz. |
A series.
W1: gsqrwave(100, .01, 4)
W2: shp(W1, 10)

W1 generates a 4 Hz square wave sampled at 100 Hz.
W2 high pass filters the square wave in W1 using a filter with a cutoff frequency of 10 Hz. The sample rate of the result is set to the sample rate of the input data.
The single pole analog high pass filter is implemented in the digital domain using the impulse invariance technique.
See SHPFREQ to display the frequency response of the single pole filter.
See DADiSP/Filters for additional digital filter design techniques and implementations.