jlblancoc / nanoflann

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

How to add new distance metrics? #234

Closed shaojunjie0912 closed 7 months ago

shaojunjie0912 commented 7 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!