YPC  0.2.0
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
hpda::algorithm::kmeans::internal::loyd_impl< PointIteratorType, PointType, DistanceType, PointTraitsType, PointContainer, PointContainerChecker > Class Template Reference

Public Types

typedef PointContainer points_t
 

Public Member Functions

 loyd_impl (const PointIteratorType &points_begin, const PointIteratorType &points_end, const points_t &initial, int k, DistanceType delta)
 
void run ()
 
points_t means () const
 
int round () const
 
std::vector< std::vector< PointIteratorType > > & clusters ()
 

Protected Types

typedef std::vector< PointIteratorType > point_refs_t
 

Protected Member Functions

bool is_all_means_close_enough ()
 
void assign (const PointIteratorType &p)
 

Protected Attributes

PointIteratorType m_begin
 
PointIteratorType m_end
 
int m_k
 
DistanceType m_delta
 
int m_round
 
std::vector< point_refs_t > m_clusters
 
points_t m_means
 
points_t m_last_means
 

The documentation for this class was generated from the following file: