?? ar1eof.m
字號(hào):
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);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -