lp2hp(b, a, wo=1.0)
Return an analog high-pass filter with cutoff frequency :None:None:`wo`
from an analog low-pass filter prototype with unity cutoff frequency, in transfer function ('ba') representation.
This is derived from the s-plane substitution
$$s \rightarrow \frac{\omega_0}{s}$$This maintains symmetry of the lowpass and highpass responses on a logarithmic scale.
Numerator polynomial coefficients.
Denominator polynomial coefficients.
Desired cutoff, as angular frequency (e.g., rad/s). Defaults to no change.
Numerator polynomial coefficients of the transformed high-pass filter.
Denominator polynomial coefficients of the transformed high-pass filter.
Transform a lowpass filter prototype to a highpass filter.
>>> from scipy import signal
... import matplotlib.pyplot as plt
>>> lp = signal.lti([1.0], [1.0, 1.0])
... hp = signal.lti(*signal.lp2hp(lp.num, lp.den))
... w, mag_lp, p_lp = lp.bode()
... w, mag_hp, p_hp = hp.bode(w)
>>> plt.plot(w, mag_lp, label='Lowpass')See :
... plt.plot(w, mag_hp, label='Highpass')
... plt.semilogx()
... plt.grid()
... plt.xlabel('Frequency [rad/s]')
... plt.ylabel('Magnitude [dB]')
... plt.legend()
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._filter_design.lp2hp_zpk
scipy.signal._filter_design.lp2hp
scipy.signal._filter_design.lp2lp
scipy.signal._filter_design.lp2bs
scipy.signal._filter_design.lp2bp
scipy.signal._filter_design.bilinear
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them