|
libcrn
3.9.5
A document image processing library
|
k medoids More...
Namespaces | |
| init | |
| update | |
Functions | |
| template<typename Init , typename Update > | |
| std::tuple< std::vector < size_t >, std::vector < std::multimap< double, size_t > >, std::vector < size_t > > | Run (Init init, Update update, const std::vector< std::vector< double >> &distmat, size_t maxiter=std::numeric_limits< size_t >::max()) |
| k medoids More... | |
k medoids
| std::tuple<std::vector<size_t>, std::vector<std::multimap<double, size_t> >, std::vector<size_t> > crn::kmedoids::Run | ( | Init | init, |
| Update | update, | ||
| const std::vector< std::vector< double >> & | distmat, | ||
| size_t | maxiter = std::numeric_limits<size_t>::max() |
||
| ) |
k medoids
| ExceptionDimension | the distance matrix is not square |
| [in] | init | a functor to initialize the medoids: std::vector<size_t> init(const std::vector<std::vector<double>> &distmat) |
| [in] | update | a functor to update the medoids: void update(std::vector<size_t> &medoids, const std::vector<std::vector<size_t>> &clusters, const std::vector<std::vector<double>> &distmat) |
| [in] | distmat | the distance matrix |
| [in] | maxiter | maximal number of iterations |
Definition at line 95 of file CRNkMedoids.h.
1.8.6