cupyx.scipy.signal.bode#

cupyx.scipy.signal.bode(system, w=None, n=100)[源代码][源代码]#

计算连续时间系统的Bode幅值和相位数据。

参数:
  • system (an instance of the LTI class or a tuple describing the system.) – 以下给出了元组中元素的数量及其解释:

  • w (array_like, optional) – 频率数组(以 rad/s 为单位)。此数组中的每个值都会计算出幅度和相位数据。如果没有给出,将计算出一个合理的集合。

  • n (int, optional) – 如果未给出 w,则计算的频率点数。n 个频率在包含系统极点和零点影响的区间内对数间隔分布。

返回:

  • w (1D ndarray) – 频率数组 [rad/s]

  • mag (1D ndarray) – 幅度数组 [dB]

  • phase (1D ndarray) – 相位数组 [度]

备注

如果为 system 传递了 (num, den),则分子和分母的系数应以降幂顺序指定(例如,s^2 + 3s + 5 应表示为 [1, 3, 5])。