KristofferC / NearestNeighbors.jl

High performance nearest neighbor data structures (KDTree and BallTree) and algorithms for Julia.
Other
413 stars 65 forks source link

some fixes for weighted metrics #170

Closed KristofferC closed 9 months ago

KristofferC commented 9 months ago

Fixes https://github.com/KristofferC/NearestNeighbors.jl/issues/169. cc @aplavin

Looking at this code now (for the first time in many years) I am not really happy with how it looks. Ideally we should only use the functions provided by Distances.jl and not need any eval_pow and eval_diff stuff.

KristofferC commented 9 months ago

Anyway, this seems to be a strict improvement so let's merge.