MCPcopy Create free account
hub / github.com/creatale/node-dv / ComputeDistance

Function ComputeDistance

deps/tesseract/classify/kdtree.cpp:472–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472FLOAT32 ComputeDistance(int k, PARAM_DESC *dim, FLOAT32 p1[], FLOAT32 p2[]) {
473 return sqrt(DistanceSquared(k, dim, p1, p2));
474}
475
476/*---------------------------------------------------------------------------*/
477/// Return whether the query region (the smallest known circle about

Callers

nothing calls this directly

Calls 2

sqrtFunction · 0.85
DistanceSquaredFunction · 0.85

Tested by

no test coverage detected