resample
Contents
resample#
resample#
resample(x,rate)
根据速率沿给定轴使用傅里叶法对 x 进行重采样。与 scipy.signal.resample 只能对数组类型的信号进行重采样相比,此函数还可以对张量类型的信号进行重采样。
函数参数
Parameter |
Format |
Description |
|---|---|---|
x |
array_like |
进行重采样的数据,类型可以为数组或张量 |
rate |
float |
采样率,rate= after_sam//before_sam |
返回
Parameter |
Format |
Description |
|---|---|---|
y |
array_like |
重采样后的数据 |
声明
AttributeError
当输入了不支持的信号类型时触发:’Data type is not supported’。