GreedyKCenters.h
82 void kcenters(const std::vector<_T> &data, unsigned int k, std::vector<unsigned int> ¢ers, Matrix &dists)
An instance of this class can be used to greedily select a given number of representatives from a set...
Definition: GreedyKCenters.h:51
std::function< double(const _T &, const _T &)> DistanceFunction
The definition of a distance function.
Definition: GreedyKCenters.h:54
const DistanceFunction & getDistanceFunction() const
Get the distance function used.
Definition: GreedyKCenters.h:69
void setDistanceFunction(const DistanceFunction &distFun)
Set the distance function to use.
Definition: GreedyKCenters.h:63
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:82
Eigen::MatrixXd Matrix
A matrix type for storing distances between points and centers.
Definition: GreedyKCenters.h:56
Random number generation. An instance of this class cannot be used by multiple threads at once (membe...
Definition: RandomNumbers.h:58
int uniformInt(int lower_bound, int upper_bound)
Generate a random integer within given bounds: [lower_bound, upper_bound].
Definition: RandomNumbers.h:80
Main namespace. Contains everything in this library.
Definition: ConstrainedSpaceInformation.h:53