Distances.jl
Distances.jl copied to clipboard
A Julia package for evaluating distances (metrics) between vectors.
It would be better to replace `dot(z, Q * z)` (here https://github.com/JuliaStats/Distances.jl/blob/master/src/mahalanobis.jl#L83 and in other places) with `dot(z, Q, z)` without storing the intermediate result of Q*z. The problem here...
Why is there only a `colwise` function and not also a matching `rowwise` function?
This PR fixes https://github.com/JuliaStats/Distances.jl/issues/238 and deprecates `pairwise!(r, dist, a[, b])` in favour of `pairwise!(dist, r, a[, b])` which is consistent with StatsAPI and StatsBase. It seemed natural to keep `colwise!`...
It seems Distances uses `pairwise!(out, metric, a[, b])` whereas the docstring in StatsAPI and the implementation in StatsBase use `pairwise!(f, dest, x[, y])`.
In physics, we often use lattices, the periodic boundary condition is non-rectangular in most cases. It can be an arbitrary parallelogon. It would be nice if the periods can be...
It'd be great if support for sparse vectors/matrices could be made to work.
IIUC, this seems to fix some AD-related issues with the warnings. It's a bit unfortunate that we ended using `skipchecks` when it's really only one check that we skip, which...
This PR removes the type structure `Metric, SemiMetric, PreMetric` which makes it harder to define new distance types (solving https://github.com/JuliaStats/Distances.jl/issues/199) Still, generic distances are encouraged to define `issymmetric` and `issubadditive`,...
I have an (yet untested) implementation of discrete Fréchet distance between curves that I would be happy to share. Is this package a good fit for such kind of distances...