reconst.m

来自「动态时间序列分析工具包.包括有ARMA,harmonic model,kalma」· M 代码 · 共 38 行

M
38
字号
function yr=reconst0(y, Interv)
% RECONST  Reconstructs a series with jumps at intervention points
%
% yr=reconst(y,Int)
%
% y: Time series (*)
% Int: Vector of variance intervention or jump points (*)
%
% yr: Reconstructed series without jumps
%
% See also IRWSM, DHR

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

% The purpose of this function is to reconstruct the behaviour of a 
% series under the hypothesis that several given sudden jumps 
% would never have happened.
% 
% The first input argument y is the original time series, while Int is 
% a vector of intervention points at which the jumps are observed. 
% The output argument yr is the modified time series.

if nargin==0
  disp(' ')
  disp(' RECONST  Reconstructs a series with jumps at intervention points')
  disp(' ')
  disp(' yr=reconst(y,Int)')
  disp(' ')
  return
end

if nargin<1, y=[]; end
if nargin<2, Interv=[]; end

yr=reconst0(y, Interv);

% end of m-file

⌨️ 快捷键说明

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