⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 period.m

📁 动态时间序列分析工具包.包括有ARMA,harmonic model,kalman filter等方法
💻 M
字号:
function [per, f] = period(x, opt, vec)
% PERIOD  Estimate periodogram
%
% [per,f]=period(y,out,vec)
%
% y: Time series (*)
% out: Table and graphical output ([1 0])
%        out(1): output on (1) or off
%        out(2): log scale on (1) or off
% v: Vector of periods where vertical lines should be plotted
%
% per: Estimated periodogram
% f: Frequency axis at which the periodogram is estimated
%
% See also ARSPEC

% Copyright (c) 2006 by CRES, Lancaster University, United Kingdom
% Authors : Peter Young, Wlodek Tych, Diego Pedregal, James Taylor

% The time series vector y (column) is specified by the user. The 
% optional argument out controls the tabular and graphical output, 
% where out(1) turns the output on (1 by default) or off (0) and 
% out(2) specifies a log (1 by default) or normal scale (0).
% With regards to the output arguments, per represents the 
% estimated periodogram, while f is the frequency axis at which 
% the periodogram is estimated.

if nargin==0
  disp(' ')
  disp(' PERIOD  Estimate periodogram')
  disp(' ')
  disp(' [per,f]=period(y,out,vec)')
  disp(' ')
  return
end

if nargin<1, x=[]; end
if nargin<2, opt=[]; end
if nargin<3, vec=[]; end

[per, f]= period0(x, opt, vec);

% end of m-file

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -