|
PROBI
1.0
|
Weighted sampling for k-means++ and similar algorithms. More...
#include <AdaptiveSampling.hpp>
Public Member Functions | |
| AdaptiveSampling (std::function< Metric< Point > *() > createMetric) | |
| template<typename ForwardIterator > | |
| std::unique_ptr< std::vector < Point > > | computeCenterSet (ForwardIterator begin, ForwardIterator end, size_t k, size_t n=0) |
| Computes a center set. More... | |
Weighted sampling for k-means++ and similar algorithms.
| std::unique_ptr< std::vector< Point > > AdaptiveSampling::computeCenterSet | ( | ForwardIterator | begin, |
| ForwardIterator | end, | ||
| size_t | k, | ||
| size_t | n = 0 |
||
| ) |
Computes a center set.
| begin | Input point set iterator: begin |
| end | Input point set iterator: end |
| k | Number of centers |
| n | Number of points (optional) |