cluster_tca_statio.m

来自「The tca package is a Matlab program that」· M 代码 · 共 18 行

M
18
字号
function [W,clusters]=cluster_tca_statio(x);
% CLUSTER_TCA - Tree-dependent Component Analysis of stationary time series
%               (with clustering of components)
%               with default options
%
% for a function with options, seee tca_options.m

n=size(x,2);
edgeprior=4*log(n)/n;

fprintf('Tree-dependent Component Analysis - stationary signals + clusters\n')
fprintf('statio...')
[W,tree]=tca_options(x,'contrast','statio','opttype','exhaustive','whitening',1,'edgeprior',edgeprior,'display',0,'tolvar',1e-4,'tolval',1e-4);
fprintf('...')
[W,tree]=tca_options(x,'contrast','statio','opttype','localsearch','whitening',1,'W',W,'edgeprior',edgeprior,'display',0,'tolvar',1e-4,'tolval',1e-4);

% build clusters
clusters=connected_components(tree2adjmat(tree));

⌨️ 快捷键说明

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