如何转换谱密度幅度(How to convert spectral density to ampli

2019-10-18 11:13发布

我已经从在R“统计”包频谱函数调用产生的标准周期图。 它产生对Y轴的谱密度。 我想实际检查的核心频率信号的振幅。

如何将频谱密度转换的幅度? 是否有R A周期图的情节/分析,其产生频率对自动振幅情节? 欣赏任何建议。

Answer 1:

也许你使用不同的术语比我好。 帮助页面表示,从频谱函数返回值是一个列表,它的前两个要素是:

freq    
vector of frequencies at which the spectral density is estimated. 
(Possibly approximate Fourier frequencies.) The units are the reciprocal 
of cycles per unit time (and not per observation spacing): see ‘Details’

spec    
Vector (for univariate series) or matrix (for multivariate series) of 
estimates of the spectral density at frequencies corresponding to freq.

所以是$spec元素你在呼唤“振幅”的载体? (你有没有说什么“核心频率信号”的,所以我只是拿起第四频率从例如?spectrum

 lh.spec <- spectrum(lh)

 lh.spec$freq[4]
#1] 0.08333333
  lh.spec$spec[4]
#[1] 1.167519


文章来源: How to convert spectral density to amplitude
标签: r signals fft