K-Means 源代码

k均值聚类算法(k-meansclusteringalgorithm)是一种迭代求解的聚类分析算法,其步骤是,预将数据分为K组,则随机选取K个对象作为初始的聚类中心,然后计算每个对象与各个种子聚类中心之间的距离,把每个对象分配给距离它最近的聚类中心。聚类中心以及分配给它们的对象就…

收录资源 500 份 全站深度检索
源码文件

#ifndef KMEANS_H_ #define KMEANS_H_ class KMeans { private: double** buffer; //double** optSolution; int number; int dimensio…

源码文件

%PREX_MATCHLAB PRTools example on K-MEANS clustering and matching labels % % Illustrates the use of K-MEANS clustering and the m…

源码文件

function s = cyclespinc(x,k) [xrow,xcol]=size(x); if k > 0 s = [x(((xrow+1-k):xrow),:);x((1:(xrow-k)),:)]; else s =…

源码文件

% IKMEANS Integer K-means % [C,I] = IKMEANS(X,K) cluster the data X (one element per % column) using the K-means method. The …

源码文件

% IKMEANS Integer K-means % [C,I] = IKMEANS(X,K) cluster the data X (one element per % column) using the K-means method. The …

源码文件

/* gmeans-- Clustering with first variation and splitting Copyright(c) 2002 Yuqiang Guan (version 1.0) */ To compile…

源码文件

/* Scalable K-means clustering software Copyright (C) 2000 Fredrik Farnstrom and James Lewis This program is free software; you …

源码文件

%PREX_MATCHLAB PRTools example on K-MEANS clustering and matching labels % % Illustrates the use of K-MEANS clustering and the m…

源码文件

/** * * Data Mining 4TF3 * k-means implementation * George A. Papayiannis * * Inputs: * Output: To screen the clu…

源码文件

function [centers,clusters,errors,ind] = kmeans_clusters(sD, n_max, c_max, verbose) % KMEANS_CLUSTERS Clustering with k-means wit…