17 #ifndef _IGNITION_KMEANS_HH_
18 #define _IGNITION_KMEANS_HH_
40 public:
Kmeans(
const std::vector<Vector3d> &_obs);
47 public: std::vector<Vector3d> Observations()
const;
52 public:
bool Observations(
const std::vector<Vector3d> &_obs);
57 public:
bool AppendObservations(
const std::vector<Vector3d> &_obs);
70 public:
bool Cluster(
int _k,
71 std::vector<Vector3d> &_centroids,
72 std::vector<unsigned int> &_labels);
77 private:
unsigned int ClosestCentroid(
const Vector3d &_p)
const;
#define IGNITION_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:408
Definition: KmeansPrivate.hh:30
K-Means clustering algorithm.
Definition: Kmeans.hh:36