class KmTreeΒΆ

#include </home/jlblanco/mrpt/libs/math/src/kmeans++/KmTree.h>

class KmTree
{
public:
    // structs

    struct Node;

    // construction

    KmTree(
        int n,
        int d,
        Scalar* points
        );

    //
methods

    Scalar DoKMeansStep(
        int k,
        Scalar* centers,
        int* assignment
        ) const;

    Scalar SeedKMeansPlusPlus(
        int k,
        Scalar* centers
        ) const;
};