5 #ifndef UFJF_MLTK_CLUSTERER_HPP
6 #define UFJF_MLTK_CLUSTERER_HPP
9 #include "ufjfmltk/core/DistanceMetric.hpp"
10 #include "ufjfmltk/core/Learner.hpp"
17 template<
typename T,
typename Callable = metrics::dist::Eucl
idean <T> >
35 virtual std::vector<mltk::Point<size_t> > clusters() {
return m_clusters; }
36 std::vector<mltk::Point<T> > centers() {
return m_centers; }
Definition: Learner.hpp:18
std::shared_ptr< Data< T > > samples
Samples used in the model training.
Definition: Learner.hpp:21
Definition: clusterer/Clusterer.hpp:18
size_t n_clusters
Number of clusters for the cluster method.
Definition: clusterer/Clusterer.hpp:23
Callable dist_function
Function used to compute the metrics between two points.
Definition: clusterer/Clusterer.hpp:21
std::vector< mltk::Point< size_t > > m_clusters
Clusters of points.
Definition: clusterer/Clusterer.hpp:27
std::vector< mltk::Point< T > > m_centers
Vector with the centers of the clusters.
Definition: clusterer/Clusterer.hpp:25
UFJF-MLTK main namespace for core functionalities.
Definition: classifier/Classifier.hpp:11