kmeansPredict

Purpose

Assigns data to k clusters, based upon k user supplied centroids.

Format

assignments = kmeansPredict(centroids, X);
assignments = kmeansPredict(mdl, X);

Input

centroids
kxP matrix of cluster centers.
X
NxP matrix, the data to partition.
mdl
An instance of kmeansModel structure returned from kmeansFit.

Output

assignments
Nx1 matrix, containing the cluster to which each corresponding observation of X has been assigned. Range = 1:k.

See also

kmeansFit, kmeansControlCreate

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

REQUEST A FREE QUOTE

Thank you for your interest in the GAUSS family of products.

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap