22 for j
in range(0, 100):
32print(c.get_cluster_center(0))
33print(c.get_cluster_center(1))
34print(c.get_cluster_center(2))
Simply return the coordinates of a VectorD.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
VectorD< D > get_random_vector_in(const BoundingBoxD< D > &bb)
Generate a random vector in a box with uniform density.
Code to compute statistical measures.
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.