摘要:
阅读全文
摘要:
VS多行注释快捷键注释:Ctrl+K,Ctrl+C取消注释:Ctrl+K,Ctrl+U 阅读全文
摘要:
Matlab函数kmeansK-means聚类算法采用的是将N*P的矩阵X划分为K个类,使得类内对象之间的距离最大,而类之间的距离最小。使用方法:Idx=Kmeans(X,K)[Idx,C]=Kmeans(X,K)[Idx,C,sumD]=Kmeans(X,K)[Idx,C,sumD,D]=Kmeans(X,K)[…]=Kmeans(…,’Param1’,Val1,’Param2’,Val2,…)各输入输出参数介绍:X N*P的数据矩阵K 表示将X划分为几类,为整数Idx N*1的向量,存储的是每个点的聚类标号C K*P的矩阵,存储的是K个聚类质心位置sumD 1*K的和向量,存储的是类间所有 阅读全文
摘要:
MATLAB中floor、round、ceil、fix区别B = floor(A) rounds the elements of A to the nearest integers less than or equal to A. For complex A, the imaginary and real parts are rounded independently. (floor:朝负无穷方向舍入)B = ceil(A) rounds the elements of A to the nearest integers greater than or equal to A. For com. 阅读全文