Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Cluster_engine_k_means_point_selector_random< PointType, VectorType > Class Template Reference

Select randomly the initial centers of mass for k-means algorithm. More...

#include <Cluster_engine_k_means_seed_selectors.hpp>

Attributes

std::random_device m_rd
 
std::mt19937 m_rng
 

Constructors

 T_Cluster_engine_k_means_point_selector_random (void)
 
 T_Cluster_engine_k_means_point_selector_random (int generator)
 
 T_Cluster_engine_k_means_point_selector_random (const Self &other)
 
 T_Cluster_engine_k_means_point_selector_random (void)
 
 T_Cluster_engine_k_means_point_selector_random (int generator)
 
 T_Cluster_engine_k_means_point_selector_random (const Self &other)
 

Functor

template<class InputIterator , class OutputIterator >
OutputIterator operator() (std::size_t k, InputIterator begin, InputIterator end, OutputIterator out)
 
template<class InputIterator , class OutputIterator >
OutputIterator operator() (std::size_t k, InputIterator begin, InputIterator end, OutputIterator out)
 

Detailed Description

template<class PointType, class VectorType>
class SBL::GT::T_Cluster_engine_k_means_point_selector_random< PointType, VectorType >

Select randomly the initial centers of mass for k-means algorithm.

It uses a uniform distribution for generating the centers of mass .

Template Parameters
PointTypeRepresentation of a point.
VectorTypeRepresentation of a vector.