|
libstp
Robotics library for Botball
|
Fixed-iteration k-means for one-dimensional data with exactly two clusters. More...
#include <Kmeans.hpp>
Public Member Functions | |
| KMeans (int maxIterations=10) | |
| KMeansResult | fit (const std::vector< double > &data) const |
| Cluster data and return the two final centroids in ascending order. | |
Fixed-iteration k-means for one-dimensional data with exactly two clusters.
Definition at line 14 of file Kmeans.hpp.
|
inline |
Definition at line 16 of file Kmeans.hpp.
| KMeansResult libstp::kmeans::KMeans::fit | ( | const std::vector< double > & | data | ) | const |
Cluster data and return the two final centroids in ascending order.