MRPT
1.9.9
|
Go to the source code of this file.
Macros | |
#define | ENABLE_KMEANS_ASSERTS |
#define | KM_ASSERT(expression) (void)((expression) != 0 ? 0 : __KMeansAssertionFailure(__FILE__, __LINE__, #expression)) |
Typedefs | |
using | Scalar = double |
Functions | |
Scalar * | PointAllocate (int d) |
void | PointFree (Scalar *p) |
void | PointCopy (Scalar *p1, const Scalar *p2, int d) |
void | PointAdd (Scalar *p1, const Scalar *p2, int d) |
void | PointScale (Scalar *p, Scalar scale, int d) |
Scalar | PointDistSq (const Scalar *p1, const Scalar *p2, int d) |
int | __KMeansAssertionFailure (const char *file, int line, const char *expression) |
int | GetRandom (int n) |
#define KM_ASSERT | ( | expression | ) | (void)((expression) != 0 ? 0 : __KMeansAssertionFailure(__FILE__, __LINE__, #expression)) |
Definition at line 86 of file KmUtils.h.
Referenced by KmTree::BuildNodes(), KmTree::DoKMeansStep(), KmTree::DoKMeansStepAtNode(), KmTree::KmTree(), RunKMeans(), RunKMeansPlusPlus(), and KmTree::SeedKMeansPlusPlus().
int __KMeansAssertionFailure | ( | const char * | file, |
int | line, | ||
const char * | expression | ||
) |
Definition at line 17 of file KmUtils.cpp.
|
inline |
Definition at line 100 of file KmUtils.h.
Referenced by RunKMeans(), and KmTree::SeedKMeansPlusPlus().
Definition at line 61 of file KmUtils.h.
Referenced by KmTree::BuildNodes(), and KmTree::DoKMeansStepAtNode().
|
inline |
Definition at line 49 of file KmUtils.h.
Referenced by KmTree::BuildNodes(), KmTree::DoKMeansStep(), and KmTree::KmTree().
Definition at line 55 of file KmUtils.h.
References mrpt::system::os::memcpy().
Referenced by KmTree::BuildNodes(), KmTree::DoKMeansStep(), and KmTree::KmTree().
Definition at line 71 of file KmUtils.h.
Referenced by KmTree::DoKMeansStepAtNode(), KmTree::SeedKMeansPlusPlus(), and KmTree::SeedKmppUpdateAssignment().
Definition at line 54 of file KmUtils.h.
Referenced by KmTree::BuildNodes(), KmTree::DoKMeansStep(), and KmTree::KmTree().
Definition at line 66 of file KmUtils.h.
Referenced by KmTree::BuildNodes(), and KmTree::DoKMeansStep().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |