Purpose: updated the core chapter

This commit is contained in:
Elena Fedotova 2011-04-07 20:29:59 +00:00
parent 07d19c2c6f
commit ef06694779
3 changed files with 481 additions and 485 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)

File diff suppressed because it is too large Load Diff