cluster.m
来自「该算法包包含了hierichal」· M 代码 · 共 21 行
M
21 行
function [xj,I] = cluster(x,c,j);% CLUSTER : return the matrix of samples in cluster j according to c% [xj,I] = cluster(x,c,j)% x - data% c - categories% j - cluster identity% xj - x samples in cluster j% I - indices of these samples in x/c% Copyright (c) 1995-1996 Frank Dellaert% All rights Reserved[dx,nx] = size(x);[dc,nc] = size(c);if (nc~=nx) error('cluster: x and c must have same number of columns'); endif (dc~=1) error('cluster: c must be row vector'); endI = find(c==j);xj = x(:,I);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?