Skip to content

Commit

Permalink
Export 'MinkowskiMetric'
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Oct 22, 2024
1 parent 0413fa8 commit 19e7ab2
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions src/Distances.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export
PreMetric,
SemiMetric,
Metric,
MinkowskiMetric,

# generic functions
result_type,
Expand All @@ -28,32 +29,24 @@ export
Minkowski,
Jaccard,
BrayCurtis,
RogersTanimoto,

Hamming,
RogersTanimoto, Hamming,
CosineDist,
CorrDist,
ChiSqDist,
KLDivergence,
GenKLDivergence,
JSDivergence,
RenyiDivergence,
SpanNormDist,

WeightedEuclidean,
SpanNormDist, WeightedEuclidean,
WeightedSqEuclidean,
WeightedCityblock,
WeightedMinkowski,
WeightedHamming,
SqMahalanobis,
Mahalanobis,
BhattacharyyaDist,
HellingerDist,

Haversine,
SphericalAngle,

MeanAbsDeviation,
HellingerDist, Haversine,
SphericalAngle, MeanAbsDeviation,
MeanSqDeviation,
RMSDeviation,
NormRMSDeviation,
Expand All @@ -69,19 +62,15 @@ export
braycurtis,
rogerstanimoto,
chebyshev,
minkowski,

hamming,
minkowski, hamming,
cosine_dist,
corr_dist,
chisq_dist,
kl_divergence,
gkl_divergence,
js_divergence,
renyi_divergence,
spannorm_dist,

weuclidean,
spannorm_dist, weuclidean,
wsqeuclidean,
wcityblock,
wminkowski,
Expand All @@ -90,12 +79,8 @@ export
mahalanobis,
bhattacharyya,
hellinger,
bregman,

haversine,
spherical_angle,

meanad,
bregman, haversine,
spherical_angle, meanad,
msd,
rmsd,
nrmsd
Expand All @@ -104,7 +89,7 @@ if VERSION < v"1.2-"
import Base: has_offset_axes
require_one_based_indexing(A...) =
!has_offset_axes(A...) ||
throw(ArgumentError("offset arrays are not supported but got an array with index other than 1"))
throw(ArgumentError("offset arrays are not supported but got an array with index other than 1"))
else
import Base: require_one_based_indexing
end
Expand Down

0 comments on commit 19e7ab2

Please sign in to comment.