cupyx.scipy.signal.dbode#
- cupyx.scipy.signal.dbode(system, w=None, n=100)[源代码][源代码]#
计算离散时间系统的Bode幅值和相位数据。
- 参数:
system (an instance of the LTI class or a tuple describing the system.) –
以下给出了元组中元素的数量及其解释:
1 (dlti 的实例)
2 (num, den, dt)
3 (零点, 极点, 增益, 采样时间)
4 (A, B, C, D, dt)
w (array_like, optional) – 频率数组(以弧度/样本为单位)。此数组中的每个值都会计算幅度和相位数据。如果没有给出,将计算一个合理的集合。
n (int, optional) – 如果未给出 w,则计算的频率点数。n 个频率在包含系统极点和零点影响的区间内对数间隔分布。
- 返回:
w (1D ndarray) – 频率数组 [rad/时间单位]
mag (1D ndarray) – 幅度数组 [dB]
phase (1D ndarray) – 相位数组 [度]
备注
如果为
system传入 (num, den),则分子和分母的系数应以降幂顺序指定(例如,z^2 + 3z + 5应表示为[1, 3, 5])。