Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
Representation of a center of mass in k-means algorithm. More...
#include <Cluster_engine_k_means.hpp>
Constructors | |
T_Cluster_engine_k_means_center_of_mass (unsigned d) | |
Initialize the center of mass at the origin in a D-dimensional space. More... | |
T_Cluster_engine_k_means_center_of_mass (const Point &p) | |
Initialize the center of mass from a unique point. More... | |
T_Cluster_engine_k_means_center_of_mass (const Vector ¢er_of_mass) | |
Initialize the center of mass from another center of mass. More... | |
Accessors | |
const Point & | get (void) const |
void | add_next (const Point &p) |
Self | get_next (void) const |
Representation of a center of mass in k-means algorithm.
The representation used for a center. must provide a += operation since we accumulate points on a center.
PointType | Representation of a point. |
VectorType | Representation of a vector. |
|
inline |
Initialize the center of mass at the origin in a D-dimensional space.
|
inline |
Initialize the center of mass from a unique point.
|
inline |
Initialize the center of mass from another center of mass.