Commit ef066947 authored by Elena Fedotova's avatar Elena Fedotova

Purpose: updated the core chapter

parent 07d19c2c
This diff is collapsed.
......@@ -10,15 +10,15 @@ kmeans
.. c:function:: double kmeans( const Mat\& samples, int clusterCount, Mat\& labels, TermCriteria termcrit, int attempts, int flags, Mat* centers )
Finds the centers of clusters and groups the input samples around the clusters.
Finds centers of clusters and groups input samples around the clusters.
:param samples: Floating-point matrix of input samples, one row per sample
:param samples: Floating-point matrix of input samples, one row per sample.
:param clusterCount: The number of clusters to split the set by
:param clusterCount: The number of clusters to split the set by.
:param labels: The input/output integer array that will store the cluster indices for every sample
:param labels: The input/output integer array that stores the cluster indices for every sample.
:param termcrit: Specifies maximum number of iterations and/or accuracy (distance the centers can move by between subsequent iterations)
:param termcrit: Specifies the maximum number of iterations and/or accuracy (distance the centers can move by between subsequent iterations)
:param attempts: How many times the algorithm is executed using different initial labelings. The algorithm returns the labels that yield the best compactness (see the last function parameter)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment