cluster analysis - Using K-means clustering with predefined seeds in MATLAB -
i need , example showing how use k-means clustering in matlab using prespecified datapoints initial seeds.
thanks
idx = kmeans(x,k,'start',seeds)
will run k-means predefined datapoints seeds
(such k
rows of x
, can choose seeds long it's k
-by-p array, p number of columns of x
) initial seeds. note if specify seeds
, don't need specify k
(pass []
instead). kmeans
infer number of rows of seeds
how many clusters want.
by default, kmeans
chooses k
randomly picked rows of x
seeds.
Comments
Post a Comment