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

📄 bk.m

📁 不同算法对时间序列进行奇异谱分解的源程序代码
💻 M
字号:
  function [C]=bk(X, M)
%  Syntax: C=bk(X, M); 
%  BK computes a Broomhead/King type covariance matrix for the
%  centered multichannel process X, for embedding dimension 'M'.
%  Each of the columns of X is a time series.
%
%  Note that X must be centered.
%
%  Returns:   C - lag-covariance matrix.
%
%  Written by Eric Breitenberger.    Version date 1/11/96
%  Please send comments and suggestions to eric@gi.alaska.edu   
%
[N,L]=size(X);
if M*L>=N-M+1, disp('Warning: Covariance matrix may be ill-conditioned.'), end

% Create the trajectory matrix: this code differs from 
% that in EEOF only in the column ordering.
T=zeros(N-M+1,M*L);
index=0:M:(L-1)*M;

for i=1:M
  T(:,index+i)=X(i:N-M+i,:);
end

C=(T'*T)./(N-M+1);



⌨️ 快捷键说明

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