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

📄 ar1eof.m

📁 蒙托卡罗模拟奇异谱分析
💻 M
字号:
function [E,L,C]=ar1eof(g,a,mu2,M)
% AR1EOF - theoretical SSA EOFs for AR(1) process.
% Syntax: [E,L,C]=ar1eof(g,a,mu2,M);
%
% Given the autocorrelation (g), noise variance (a), and
% expected square on the mean (mu2) parameters for a
% theoretical AR(1) process, and the SSA embedding 
% dimension M, AR1EOF computes the EOFs and eigenspectrum
% for the process.
%
% Written by Eric Breitenberger.      Version 2/22/96
% Please send comments and suggestions to eric@gi.alaska.edu       
%

if g~=0 % (red noise)
  gk=0:M-1;
  gk=g.^gk;
  gk=gk-mu2;
  C=(a^2/(1-g^2))*toeplitz(gk);
else % (white noise)
  C=(a^2/(1-g^2))*(1-mu2)*eye(M);
end
[E,L]=eig(C);
[L,i]=sort(-diag(L));
L=-L';
E=E(:,i);

⌨️ 快捷键说明

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