Initializer for K-means that randomly selects k features as the cluster centers. More...
#include <simple_kmeans.h>
Public Member Functions | |
template<class Feature , class Distance , class FeatureAllocator > | |
void | operator() (const std::vector< Feature * > &features, size_t k, std::vector< Feature, FeatureAllocator > ¢ers, Distance distance) |
Initializer for K-means that randomly selects k features as the cluster centers.
Definition at line 206 of file simple_kmeans.h.
void vt::InitRandom::operator() | ( | const std::vector< Feature * > & | features, | |
size_t | k, | |||
std::vector< Feature, FeatureAllocator > & | centers, | |||
Distance | distance | |||
) | [inline] |
Definition at line 209 of file simple_kmeans.h.