3

我想用 fft 或小波相关函数转换以下时间序列数据并使用 R 绘制它。你能告诉我吗

  1. 如何绘制fft或小波图?
  2. 如何提取特定频率并将其与时域图一起绘制?

这是数据:

> class(zc)
[1] "xts" "zoo"

> str(zc)
An ‘xts’ object from (10/15/12 09:00:00) to (10/15/12 15:15:00) containing:
  Data: num [1:366, 1] 252 253 253 253 253 ...
 - attr(*, "dimnames")=List of 2
  ..$ : NULL
  ..$ : chr "Close"
  Indexed by objects of class: [chron,dates,times] TZ: 
  xts Attributes:  
List of 2
 $ tclass: chr [1:3] "chron" "dates" "times"
 $ tzone : chr ""


> head(zc)
                     Close
(10/15/12 09:00:00) 252.40
(10/15/12 09:01:00) 253.10
(10/15/12 09:02:00) 253.15
(10/15/12 09:03:00) 253.30
(10/15/12 09:04:00) 253.25
(10/15/12 09:05:00) 253.45

提前致谢,SK公园

4

0 回答 0