Main MRPT website > C++ reference for MRPT 1.9.9
Functions
src/math/kmeans++/kmeans.h File Reference
#include "KmUtils.h"
#include <iostream>

Go to the source code of this file.

Functions

void ClearKMeansLogging ()
 
void AddKMeansLogging (std::ostream *out, bool verbose)
 
Scalar RunKMeans (int n, int k, int d, Scalar *points, int attempts, Scalar *centers, int *assignments)
 
Scalar RunKMeansPlusPlus (int n, int k, int d, Scalar *points, int attempts, Scalar *centers, int *assignments)
 

Function Documentation

◆ AddKMeansLogging()

void AddKMeansLogging ( std::ostream *  out,
bool  verbose 
)

Definition at line 37 of file kmeans++/KMeans.cpp.

References gLogOutputs, and gVerboseLogOutputs.

◆ ClearKMeansLogging()

void ClearKMeansLogging ( )

Definition at line 42 of file kmeans++/KMeans.cpp.

References gLogOutputs, and gVerboseLogOutputs.

◆ RunKMeans()

Scalar RunKMeans ( int  n,
int  k,
int  d,
Scalar points,
int  attempts,
Scalar centers,
int *  assignments 
)

Definition at line 119 of file kmeans++/KMeans.cpp.

References GetRandom(), GetSeconds(), KM_ASSERT, LOG, LogMetaStats(), mrpt::system::os::memcpy(), and RunKMeansOnce().

Referenced by mrpt::math::detail::internal_kmeans< double >(), and mrpt::math::detail::internal_kmeans< float >().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunKMeansPlusPlus()

Scalar RunKMeansPlusPlus ( int  n,
int  k,
int  d,
Scalar points,
int  attempts,
Scalar centers,
int *  assignments 
)

Definition at line 178 of file kmeans++/KMeans.cpp.

References GetSeconds(), KM_ASSERT, LOG, LogMetaStats(), RunKMeansOnce(), and KmTree::SeedKMeansPlusPlus().

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019