•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
GreedyKCenters.h
Random number generation. An instance of this class cannot be used by multiple threads at once (membe...
Definition: RandomNumbers.h:88
Eigen::MatrixXd Matrix
A matrix type for storing distances between points and centers.
Definition: GreedyKCenters.h:120
const DistanceFunction & getDistanceFunction() const
Get the distance function used.
Definition: GreedyKCenters.h:133
void setDistanceFunction(const DistanceFunction &distFun)
Set the distance function to use.
Definition: GreedyKCenters.h:127
void kcenters(const std::vector< _T > &data, unsigned int k, std::vector< unsigned int > ¢ers, Matrix &dists)
Greedy algorithm for selecting k centers.
Definition: GreedyKCenters.h:146
int uniformInt(int lower_bound, int upper_bound)
Generate a random integer within given bounds: [lower_bound, upper_bound].
Definition: RandomNumbers.h:143
std::function< double(const _T &, const _T &)> DistanceFunction
The definition of a distance function.
Definition: GreedyKCenters.h:118