initstr.m

来自「细胞生长结构可视化工具箱-MATLAB Toolbox1999.zip」· M 代码 · 共 50 行

M
50
字号
% Define and initialise a GCS structure

Gcs.k = 2;		% Dimensionality of network
Gcs.n = 0;		% Dimensionality of training data

Gcs.NoClasses = 2;

% Update rate coeeficients
Gcs.eb = 0.06;
Gcs.en = 0.002;
	
% Decay rate of Error values
Gcs.beta = 0.0005;

% error decrease rate - when a new node is inserted
Gcs.alpha = 1;

% Allocate field for weights
Gcs.w=[];

% Initial visualisation weights
Gcs.wvis=[];
Gcs.wvis(1,:) = [0,0];
Gcs.wvis(2,:) = [1,0];
Gcs.wvis(3,:) = [0.5,1];
	
% metric to be used, 2=>euclidean
Gcs.metric = 2;

% Initialise Connection Array - links
temp = ones(k+1,1);
Gcs.C=1-diag(temp,0);

% Counter or error array
Gcs.E=zeros(1,k+1);

% clear distance measure vector
%Gcs.d=0;

% Clear performance vectors
Gcs.accv=[]; sensv=[]; specv=[]; areav=[];
for cindex = 1:NoClasses
   eval(['Gcs.accv' int2str(cindex) ' = [];']);
end

% Display parameters
Gcs.c='jet'; 	% Name of colourmap to be used
Gcs.smooth= 0.75;	% Gaussian width parameter
Gcs.NoPts=30;	% Sets resolution of colourmaps
	

⌨️ 快捷键说明

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