def phase_resp(self, frequencies=None, unwrap=False):
"""Calculate the real phase response"""
w, h = self.complex_freq_resp(frequencies)
phase = np.angle(h, deg=False)
phase = np.unwrap(phase) if unwrap else phase
phase = np.rad2deg(phase)
freqs = rad2hz(w, self.fs)
return freqs, phase
评论列表
文章目录