Kmeans clustering usage of matlab

Source: Internet
Author: User

The Kmeans function uses the following:

[Idx,c,sumd,d] = Kmeans (x,2, ' Distance ', ' City ', ' replicates ', 5, ' Options ', opts);

The parameters have the following meanings:
IDX: The category in which each sample point resides
C: The center point coordinate position of the k*p,K is the category of the cluster
SUMD: The sum of the distances from each point to the center point within each class
D: Distance from each point to a variety of center points N*k

x represents the data matrix of the cluster to be clustered;

2 indicates the number of cluster categories;

Kmeans clustering usage of matlab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.