Scaling/Units 功率谱(带 R)

Scaling/Units of power spectrum (with R)

R 中的 spec.pgram() 或等效的 spectrum() 函数根据文档按如下方式缩放频谱:

The spectrum here is defined with scaling 1/frequency(x), following S-PLUS. This makes the spectral density a density over the range (-frequency(x)/2, +frequency(x)/2]

spectrum(sin(seq(0, 10, 0.1)))

给定以 1000 Hz 的采样率记录 100 毫秒的信号,轴的正确缩放比例是多少?

轴的范围是[-Fs/2,Fs/2]。对于采样率为 1000 Hz 的示例,x 轴将为 -500 Hz 至 500 Hz。