8 #ifndef IMPKMEANS_KMEANS_H
9 #define IMPKMEANS_KMEANS_H
11 #include <IMP/kmeans/kmeans_config.h>
12 #include "IMP/kmeans/internal/KMlocal.h"
13 #include "IMP/kmeans/internal/KMdata.h"
14 #include "IMP/kmeans/internal/KMterm.h"
27 IMPKMEANS_BEGIN_NAMESPACE
96 (
const std::string& fname_data,
98 unsigned int max_nPts);
141 const IMP::Floats& get_data_point(
unsigned int i)
const;
146 return STLDataPts_.size();
167 assert(is_executed_);
168 return centerAssignments_;
176 assert(is_executed_);
177 return ptsSqrDistToCenters_;
183 assert( is_executed_ );
184 return pCenters_->getK();
195 void sync_KMdata_pts_from_STL();
206 bool read_pt_from_stream
218 void read_data_pts_from_stream
221 unsigned int max_nPts);
229 void print_pt_to_stream
239 void print_summary(
const internal::KMlocal& theAlg,
256 bool is_KM_data_synced_;
272 internal::KMterm terminationConditions_;
276 IMPKMEANS_END_NAMESPACE
Various general useful macros for IMP.
A nullptr-initialized pointer to an IMP Object.
LogLevel
The log levels supported by IMP.
IMP::Ints get_assignments() const
IMP::Floats get_squared_distance_to_centers() const
Various general useful macros for IMP.
unsigned int get_number_of_centers() const
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Common base class for heavy weight IMP objects.
Various general useful macros for IMP.
A shared base class to help in debugging and things.
unsigned int get_number_of_data_points() const