9 #ifndef PND_MVA_CLUSTER_H
10 #define PND_MVA_CLUSTER_H
21 #define PNDMVA_CLUSTER_DEBUG 0
24 typedef std::vector< std::pair<std::string, std::vector<float>*> >
DataPoints;
53 bool const prune,
bool const forceLabels);
75 std::vector<std::string>
const&
labels);
102 inline void Setprune (
bool const prune =
false);
113 #if (PNDMVA_CLUSTER_DEBUG > 0)
192 #endif// End interface
void SetForceToLabel(bool const forceLabel=false)
std::vector< std::set< size_t > * > m_ClustersToPoints
void ReInitEmptyCenter(size_t centerIdx)
PndMvaCluster(DataPoints const &InputData, size_t nCluster)
Double_t val[nBoxes][nFEBox]
virtual DataPoints * Cluster(ClusteringType const ClType=KMEANS_HARD)
DataPoints m_Centroids
Data points dimension.
virtual DataPoints * ClusterAndLabel(ClusteringType const ClType, std::vector< std::string > const &labels)
PndMvaCluster & operator=(const PndMvaCluster &other)
std::vector< std::string > labels
size_t GetClusterDimension() const
size_t m_dimension
input data points.
void SetNumberOfClusters(size_t val)
ClusteringType
Clustering types.
void Setprune(bool const prune=false)
size_t GetNumberOfClusters() const
std::vector< std::pair< std::string, std::vector< float > * > > DataPoints
Data structure of the space points and the cluster centers.
std::vector< size_t > m_PointsToClusters
DataPoints m_PointSet
number of cluster centers.