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

📄 cluster.m

📁 使用matlab进行实现的kmeans算法。数据集。
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -