Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RZ_A2M_Mbed_samples
L2< T > Struct Template Reference
Squared Euclidean distance functor, optimized version. More...
#include <dist.h>
Public Member Functions | |
template<typename Iterator1 , typename Iterator2 > | |
ResultType | operator() (Iterator1 a, Iterator2 b, size_t size, ResultType worst_dist=-1) const |
Compute the squared Euclidean distance between two vectors. | |
template<typename U , typename V > | |
ResultType | accum_dist (const U &a, const V &b, int) const |
Partial euclidean distance, using just one dimension. |
Detailed Description
template<class T>
struct cvflann::L2< T >
Squared Euclidean distance functor, optimized version.
Definition at line 136 of file dist.h.
Member Function Documentation
ResultType accum_dist | ( | const U & | a, |
const V & | b, | ||
int | |||
) | const |
ResultType operator() | ( | Iterator1 | a, |
Iterator2 | b, | ||
size_t | size, | ||
ResultType | worst_dist = -1 |
||
) | const |
Generated on Tue Jul 12 2022 18:20:24 by
