jlblancoc / nanoflann

nanoflann: a C++11 header-only library for Nearest Neighbor (NN) search with KD-trees
Other
2.26k stars 491 forks source link

How to add new distance metrics? #234

Closed shaojunjie0912 closed 9 months ago

shaojunjie0912 commented 9 months ago

Is there any way to add distance metrics other than L1, L2.....?

If so, is there any code example?

Thank you for your work!