From b73f0bf1ac300497c77bdc485c981c079bbc5103 Mon Sep 17 00:00:00 2001 From: Elias Carvalho <73039601+eliascarv@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:06:53 -0300 Subject: [PATCH] Update README.md Co-authored-by: Daniel Karrasch --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b87e4d..5b2cf3d 100644 --- a/README.md +++ b/README.md @@ -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