Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Karrasch <[email protected]>
  • Loading branch information
eliascarv and dkarrasch authored Oct 17, 2024
1 parent c9587a1 commit b73f0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ At the top of this hierarchy is an abstract class **PreMetric**, which is define

**MinkowskiMetric** is an abstract type that encompasses a family of metrics defined by the formula

d(x, y) = sum((x - y) .^ p) ^ (1 / p)
d(x, y) = sum(w .* (x - y) .^ p) ^ (1 / p)

where the `p` parameter defines the metric.
where the `p` parameter defines the metric and `w` is a potential weight vector (all 1's by default).

This type system has practical significance. For example, when computing pairwise distances
between a set of vectors, you may only perform computation for half of the pairs, derive the
Expand Down

0 comments on commit b73f0bf

Please sign in to comment.