<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Distance_Functions%2C_Metrics</id>
	<title>Distance Functions, Metrics - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Distance_Functions%2C_Metrics"/>
	<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Functions,_Metrics&amp;action=history"/>
	<updated>2026-05-14T00:23:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Functions,_Metrics&amp;diff=3273&amp;oldid=prev</id>
		<title>Khanh at 20:31, 29 October 2021</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Functions,_Metrics&amp;diff=3273&amp;oldid=prev"/>
		<updated>2021-10-29T20:31:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Functions,_Metrics&amp;amp;diff=3273&amp;amp;oldid=2970&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Functions,_Metrics&amp;diff=2970&amp;oldid=prev</id>
		<title>Lila: Created page with &quot;taxicab metric to the Euclidean metric on the plane: According to the taxicab metr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Functions,_Metrics&amp;diff=2970&amp;oldid=prev"/>
		<updated>2021-10-25T20:26:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php?title=File:Manhattan_distance.svg&quot; title=&quot;File:Manhattan distance.svg&quot;&gt;thumb|200px|An illustration comparing the [[Taxicab geometry|taxicab metric&lt;/a&gt; to the Euclidean metric on the plane: According to the taxicab metr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Manhattan distance.svg|thumb|200px|An illustration comparing the [[Taxicab geometry|taxicab metric]] to the Euclidean metric on the plane: According to the taxicab metric the red, yellow, and blue paths have the same [[Arc length|length]] (12). According to the Euclidean metric, the green path has length &amp;lt;math&amp;gt;6 \sqrt{2} \approx 8.49&amp;lt;/math&amp;gt;, and is the unique shortest path.]]&lt;br /&gt;
&lt;br /&gt;
In [[mathematics]], a '''metric''' or '''distance function''' is a [[function (mathematics)|function]] that gives a [[distance]]  between each pair of point elements of a [[Set (mathematics)|set]]. A set with a metric is called a [[metric space]].{{sfn|Čech|1969}} A metric induces a [[topology]] on a set, but not all topologies can be generated by a metric. A [[topological space]] whose topology can be described by a metric is called [[metrizable]].&lt;br /&gt;
&lt;br /&gt;
One important source of metrics in [[differential geometry]] are [[metric tensor]]s, [[bilinear form]]s that may be defined from the [[tangent vector]]s of a [[differentiable manifold]] onto a scalar. A metric tensor allows distances along curves to be determined through integration, and thus determines a metric.&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
&lt;br /&gt;
A metric on a set {{mvar|X}} is a [[function (mathematics)|function]] (called ''distance function'' or simply ''distance'')&lt;br /&gt;
:&amp;lt;math&amp;gt;d : X \times X \to [0,\infty),&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;[0,\infty)&amp;lt;/math&amp;gt; is the set of non-negative [[real number]]s and for all &amp;lt;math&amp;gt;x, y, z \in X&amp;lt;/math&amp;gt;, the following three axioms are satisfied:&lt;br /&gt;
&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:2&amp;quot;| 1. &lt;br /&gt;
|style=&amp;quot;width:250px&amp;quot;|&amp;lt;math&amp;gt;d(x, y) = 0 \Leftrightarrow x = y&amp;lt;/math&amp;gt; || [[identity of indiscernibles]]&lt;br /&gt;
|-&lt;br /&gt;
| 2. || &amp;lt;math&amp;gt;d(x, y)  = d(y, x) &amp;lt;/math&amp;gt; || [[Symmetric function|symmetry]]&lt;br /&gt;
|-&lt;br /&gt;
| 3. || &amp;lt;math&amp;gt;d(x, y) \le d(x, z) + d(z, y)&amp;lt;/math&amp;gt;  || [[triangle inequality]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A metric (as defined) is a non-negative real-valued function.  This, together with axiom 1, provides a ''separation condition'', where distinct or separate points are precisely those that have a positive distance between them.&lt;br /&gt;
&lt;br /&gt;
The requirement that &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; have a range of &amp;lt;math&amp;gt;[0,\infty)&amp;lt;/math&amp;gt; is a clarifying (but unnecessary) restriction in the definition, for if we had any function &amp;lt;math&amp;gt;d : X \times X \to \R&amp;lt;/math&amp;gt; that satisfied the same three axioms, the function could be proven to still be non-negative as follows (using axioms 1, 3, and 2 in that order):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;0 = d(x, x) \le d(x, y) + d(y, x) = d(x, y) + d(x, y) = 2 d(x, y)&amp;lt;/math&amp;gt; which implies &amp;lt;math&amp;gt;0 \le d(x, y)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A metric is called an [[ultrametric space|ultrametric]] if it satisfies the following stronger version of the ''triangle inequality'' where points can never fall 'between' other points:&lt;br /&gt;
: &amp;lt;math&amp;gt;d(x, y) \leq \max(d(x, z), d(y, z))&amp;lt;/math&amp;gt;&lt;br /&gt;
for all &amp;lt;math&amp;gt;x, y, z \in X&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A metric {{mvar|d}} on {{mvar|X}} is called [[Intrinsic metric|intrinsic]] if any two points {{mvar|x}} and {{mvar|y}} in {{mvar|X}} can be joined by a [[curve]] with [[Curve#Lengths of curves|length]] arbitrarily close to {{math|''d''(''x'', ''y'')}}.&lt;br /&gt;
&lt;br /&gt;
A metric ''d'' on a group ''G'' (written multiplicatively) is said to be {{em|left-invariant}} (resp. {{em|right invariant}}) if we have&lt;br /&gt;
:&amp;lt;math&amp;gt;d(zx, zy) = d(x, y)&amp;lt;/math&amp;gt; [resp. &amp;lt;math&amp;gt;d(xz,yz)=d(x,y)&amp;lt;/math&amp;gt;]&lt;br /&gt;
for all ''x'', ''y'', and ''z'' in ''G''.&lt;br /&gt;
&lt;br /&gt;
A metric &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; on a commutative additive group &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is said to be {{em|translation invariant}} if &amp;lt;math&amp;gt;D(x, y) = D(x + z, y + z)&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x, y, z \in X,&amp;lt;/math&amp;gt; or equivalently, if &amp;lt;math&amp;gt;D(x, y) = D(x - y, 0)&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x, y \in X.&amp;lt;/math&amp;gt; Every [[vector space]] is also a commutative additive group and a metric on a real or complex vector space that is induced by a [[Norm (mathematics)|norm]] is always translation invariant. A metric &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; on a real or complex vector space &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is induced by a norm if and only if it is translation invariant and {{em|absolutely homogeneous}}, where the latter means that &amp;lt;math&amp;gt;D(sx, sy) = |s| D(x, y)&amp;lt;/math&amp;gt; for all scalars &amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt; and all &amp;lt;math&amp;gt;x, y \in X,&amp;lt;/math&amp;gt; in which case the function &amp;lt;math&amp;gt;\| x \| := D(x, 0)&amp;lt;/math&amp;gt; defines a norm on &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and the canonical metric induced by &amp;lt;math&amp;gt;\| \cdot \|&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;D.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
These conditions express intuitive notions about the concept of [[distance]]. For example, that the distance between distinct points is positive and the distance from ''x'' to ''y'' is the same as the distance from ''y'' to ''x''. The triangle inequality means that the distance from ''x'' to ''z'' via ''y'' is at least as great as from ''x'' to ''z'' directly. [[Euclid]] in his [[Euclidean geometry|work]] stated that the shortest distance between two points is a line; that was the triangle inequality for his geometry.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
{{Main|Metric space#Examples of metric spaces}}&lt;br /&gt;
* The [[discrete space|discrete metric]]: if ''x'' = ''y'' then ''d''(''x'',''y'') = 0.  Otherwise, ''d''(''x'',''y'') = 1.&lt;br /&gt;
* The [[Euclidean metric]] is translation and rotation invariant.&lt;br /&gt;
* The [[Taxicab geometry|taxicab metric]] is translation invariant.&lt;br /&gt;
* More generally, any metric induced by a [[norm (mathematics)|norm]] is translation invariant.&lt;br /&gt;
* If &amp;lt;math&amp;gt;(p_n)_{n\in \N}&amp;lt;/math&amp;gt; is a [[sequence]] of [[seminorm]]s defining a ([[locally convex]]) [[topological vector space]] ''E'', then &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;d(x,y)=\sum_{n=1}^\infty \frac{1}{2^n} \frac{p_n(x-y)}{1+p_n(x-y)}&amp;lt;/math&amp;gt; is a metric defining the same [[topology]]. (One can replace &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt; \frac{1}{2^n}&amp;lt;/math&amp;gt; by any [[absolute convergence|summable sequence]] &amp;lt;math&amp;gt;(a_n)&amp;lt;/math&amp;gt; of strictly [[positive number]]s.)&lt;br /&gt;
* The [[normed space]] &amp;lt;math&amp;gt;(\R, | \cdot |)&amp;lt;/math&amp;gt; is a [[Banach space]] where the absolute value is a [[Norm (mathematics)|norm]] on the real line &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt; that induces the usual [[Euclidean topology]] on &amp;lt;math&amp;gt;\R.&amp;lt;/math&amp;gt; Define a metric &amp;lt;math&amp;gt;D : \R \times \R \to \R&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;D(x, y) = | \arctan(x) - \arctan(y)|&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x, y \in \R.&amp;lt;/math&amp;gt; Just like {{nowrap|&amp;lt;math&amp;gt;| \cdot |&amp;lt;/math&amp;gt;{{hsp}}'s}} induced metric, the metric &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; also induces the usual Euclidean topology on {{math|'''R'''}}. However, &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; is not a complete metric because the sequence &amp;lt;math&amp;gt;x_{\bull} = \left(x_i\right)_{i=1}^{\infty}&amp;lt;/math&amp;gt; defined by &amp;lt;math&amp;gt;x_i := i&amp;lt;/math&amp;gt; is a [[Cauchy sequence|{{nowrap|&amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;-Cauchy}} sequence]] but it does not converge to any point of {{math|'''R'''}}. As a consequence of not converging, this {{nowrap|&amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;-Cauchy}} sequence cannot be a Cauchy sequence in &amp;lt;math&amp;gt;(\R, | \cdot |)&amp;lt;/math&amp;gt; (i.e. it is not a Cauchy sequence with respect to the norm &amp;lt;math&amp;gt;\| \cdot \|&amp;lt;/math&amp;gt;) because if it was {{nowrap|&amp;lt;math&amp;gt;| \cdot |&amp;lt;/math&amp;gt;-Cauchy,}} then the fact that &amp;lt;math&amp;gt;(\R, | \cdot |)&amp;lt;/math&amp;gt; is a Banach space would imply that it converges (a contradiction).{{sfn|Narici|Beckenstein|2011|pp=47–51}}&lt;br /&gt;
* [[Graph metric]], a metric defined in terms of distances in a certain graph.&lt;br /&gt;
* The [[Hamming distance]] in coding theory.&lt;br /&gt;
* [[Riemannian metric]], a type of metric function that is appropriate to impose on any [[differentiable manifold]]. For any such [[manifold]], one chooses at each point ''p'' a symmetric, positive definite, bilinear form ''L'': T&amp;lt;sub&amp;gt;''p''&amp;lt;/sub&amp;gt; × T&amp;lt;sub&amp;gt;''p''&amp;lt;/sub&amp;gt; → '''R''' on the [[tangent space]] T&amp;lt;sub&amp;gt;''p''&amp;lt;/sub&amp;gt; at ''p'', doing so in a smooth manner. This form determines the length of any tangent vector '''v''' on the manifold, via the definition &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\|v\| = \sqrt{L(\mathbf{v}, \mathbf{v})}&amp;lt;/math&amp;gt;. Then for any differentiable path on the manifold, its length is defined as the integral of the length of the tangent vector to the path at any point, where the integration is done with respect to the path parameter.  Finally, to get a metric defined on any pair {''x'', ''y''} of points of the manifold, one takes the infimum, over all paths from ''x'' to ''y'', of the set of path lengths. A smooth manifold equipped with a Riemannian metric is called a [[Riemannian manifold]].&lt;br /&gt;
* The [[Fubini–Study metric]] on [[complex projective space]]. This is an example of a Riemannian metric.&lt;br /&gt;
* [[String metric]]s, such as [[Levenshtein distance]] and other [[Edit distance|string edit distances]], define a metric over [[String (computer science)|strings]].&lt;br /&gt;
* [[Graph edit distance]] defines a distance function between [[Graph (discrete mathematics)|graphs]].&lt;br /&gt;
* The [[Wasserstein metric]] is a distance function defined between two [[probability distribution]]s.&lt;br /&gt;
* The [[Finsler metric]] is a continuous nonnegative function {{nowrap|F: TM → [0,+∞)}} defined on the tangent bundle.&lt;br /&gt;
&lt;br /&gt;
== Equivalence of metrics ==&lt;br /&gt;
&lt;br /&gt;
For a given set ''X'', two metrics ''d''&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and ''d''&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are called ''topologically equivalent'' (''uniformly equivalent'') if the identity mapping&lt;br /&gt;
{{block indent|em=1.2|id: (''X'',''d''&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;) → (''X'',''d''&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)}}&lt;br /&gt;
is a [[homeomorphism]] ([[uniform isomorphism]]).&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; is a metric, then &amp;lt;math&amp;gt;\min (d, 1)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\frac{d}{1+d}&amp;lt;/math&amp;gt; are metrics equivalent to &amp;lt;math&amp;gt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also|Metric space#Notions of metric space equivalence}}&lt;br /&gt;
&lt;br /&gt;
== Norm induced metric ==&lt;br /&gt;
{{anchor|Norm induced metric|Relation of norms and metrics}}&lt;br /&gt;
&amp;lt;!-- linked from [[Relation of norms and metrics]] --&amp;gt;&lt;br /&gt;
Norms on vector spaces are equivalent to certain metrics, namely homogeneous, translation-invariant ones. In other words, every norm determines a metric, and some metrics determine a norm.&lt;br /&gt;
&lt;br /&gt;
Given a [[normed vector space]] &amp;lt;math&amp;gt;(X, \|\cdot\|)&amp;lt;/math&amp;gt; we can define a metric &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;X,&amp;lt;/math&amp;gt; called the {{em|metric induced by &amp;lt;math&amp;gt;\| \cdot \|&amp;lt;/math&amp;gt;}} or simply the {{em|norm induced metric}}, by&lt;br /&gt;
:&amp;lt;math&amp;gt;d(x,y) := \| x-y\|.&amp;lt;/math&amp;gt;&lt;br /&gt;
The metric &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; is said to be {{em|induced by}} the norm &amp;lt;math&amp;gt;\|\cdot\|.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Conversely{{sfn|Narici|Beckenstein|2011|pp=47-66}} if a metric &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; on a [[vector space]] &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; satisfies the properties&lt;br /&gt;
* Translation invariance: &amp;lt;math&amp;gt;d(x,y) = d(x+a,y+a)&amp;lt;/math&amp;gt;;&lt;br /&gt;
* [[Absolute homogeneity]]: &amp;lt;math&amp;gt;d(\alpha x, \alpha y) = |\alpha| d(x,y)&amp;lt;/math&amp;gt;;&lt;br /&gt;
then a [[norm (mathematics)|norm]] on &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; may be defined by&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\|x\| := d(x,0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the metric induced by this norm is the original given metric &amp;lt;math&amp;gt;d.&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Similarly, a [[seminorm]] induces a pseudometric (see below), and a homogeneous, translation invariant pseudometric induces a seminorm.&lt;br /&gt;
&lt;br /&gt;
==Metrics on multisets==&lt;br /&gt;
We can generalize the notion of a metric from a distance between two elements to a distance between two nonempty finite multisets of elements. A [[multiset]] is a generalization of the notion of a [[set (mathematics)|set]] such that an element can occur more than once.  Define &amp;lt;math&amp;gt;Z=XY&amp;lt;/math&amp;gt; if&lt;br /&gt;
&amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; is the multiset consisting of the elements of the multisets &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, that is, if &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; occurs once in &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and once in &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; then it occurs twice in &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt;. &lt;br /&gt;
A distance function&lt;br /&gt;
&amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; on the set of nonempty finite multisets is a metric{{sfn|Vitányi|2011}} if&lt;br /&gt;
#  &amp;lt;math&amp;gt;d(X)=0&amp;lt;/math&amp;gt; if all elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; are equal and &amp;lt;math&amp;gt;d(X) &amp;gt; 0&amp;lt;/math&amp;gt; otherwise ([[positive definiteness]]), that is, ([[Non-negative|non-negativity]] plus [[identity of indiscernibles]])&lt;br /&gt;
# &amp;lt;math&amp;gt;d(X)&amp;lt;/math&amp;gt; is invariant under all permutations of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; ([[symmetry]])&lt;br /&gt;
# &amp;lt;math&amp;gt;d(XY) \leq d(XZ)+d(ZY)&amp;lt;/math&amp;gt; ([[triangle inequality]])&lt;br /&gt;
Note that the familiar metric between two elements results if the multiset &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; has two elements in 1 and 2 and the multisets &amp;lt;math&amp;gt;X,Y,Z&amp;lt;/math&amp;gt; have one element each in 3. For instance if &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; consists of two occurrences of &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;d(X)=0&amp;lt;/math&amp;gt; according to 1.&lt;br /&gt;
&lt;br /&gt;
A simple example is the set of all nonempty finite multisets &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;  of integers with &amp;lt;math&amp;gt;d(X)=\max\{x: x \in X\}- \min\{x:x \in X\}&amp;lt;/math&amp;gt;. More complex examples are [[information distance]] in multisets;{{sfn|Vitányi|2011}} and [[normalized compression distance]] (NCD) in multisets.{{sfn|Cohen|Vitányi|2012}}&lt;br /&gt;
&lt;br /&gt;
== Generalized metrics ==&lt;br /&gt;
There are numerous ways of relaxing the axioms of metrics, giving rise to various notions of generalized metric spaces. These generalizations can also be combined. The terminology used to describe them is not completely standardized. Most notably, in [[functional analysis]] pseudometrics often come from [[seminorm]]s on vector spaces, and so it is natural to call them &amp;quot;semimetrics&amp;quot;. This conflicts with the use of the term in [[topology]].&lt;br /&gt;
&lt;br /&gt;
=== Extended metrics ===&lt;br /&gt;
Some authors allow the distance function ''d'' to attain the value ∞, i.e. distances are non-negative numbers on the [[extended real number line]]. &lt;br /&gt;
Such a function is called an ''extended metric'' or &amp;quot;∞-metric&amp;quot;. &lt;br /&gt;
Every extended metric can be transformed to a finite metric such that the metric spaces are equivalent as far as notions of [[topology]] (such as [[continuous function (topology)|continuity]] or [[limit (mathematics)|convergence]]) are concerned. This can be done using a [[Subadditive function|subadditive]] monotonically increasing bounded function which is zero at zero, e.g. ''d''&amp;amp;prime;(''x'', ''y'') = ''d''(''x'', ''y'') / (1 + ''d''(''x'', ''y'')) or ''d''&amp;amp;Prime;(''x'', ''y'') = min(1, ''d''(''x'', ''y'')).&lt;br /&gt;
&lt;br /&gt;
The requirement that the metric take values in {{closed-open|0,∞}} can even be relaxed to consider metrics with values in other [[directed set]]s.  The reformulation of the axioms in this case leads to the construction of [[uniform space]]s: topological spaces with an abstract structure enabling one to compare the local topologies of different points.&lt;br /&gt;
&lt;br /&gt;
===Pseudometrics===&lt;br /&gt;
{{Main|Pseudometric space}}&lt;br /&gt;
A ''pseudometric'' on ''X'' is a function &amp;lt;math&amp;gt;d: X \times X \to \R&amp;lt;/math&amp;gt; which satisfies the axioms for a metric, except that instead of the second (identity of indiscernibles) only {{nowrap|1=''d''(''x'',''x'') = 0}} for all ''x'' is required. In other words, the axioms for a pseudometric are:&lt;br /&gt;
&lt;br /&gt;
# ''d''(''x'', ''y'') ≥ 0&lt;br /&gt;
&amp;lt;!-- # ''d''(''x'', ''y'') = 0   if and only if   ''x'' = ''y'' --&amp;gt;&lt;br /&gt;
# ''d''(''x'', ''x'') = 0 (but possibly ''d''(''x'', ''y'') = 0 for some distinct values ''x'' ≠ ''y''.)&lt;br /&gt;
# ''d''(''x'', ''y'') = ''d''(''y'', ''x'')&lt;br /&gt;
# ''d''(''x'', ''z'') ≤ ''d''(''x'', ''y'') + ''d''(''y'', ''z'').&lt;br /&gt;
&lt;br /&gt;
In some contexts, pseudometrics are referred to as ''semimetrics'' because of their relation to [[seminorm]]s.&lt;br /&gt;
&lt;br /&gt;
===Quasimetrics===&lt;br /&gt;
Occasionally, a '''quasimetric''' is defined as a function that satisfies all axioms for a metric with the possible exception of symmetry.&amp;lt;ref&amp;gt;{{harvtxt|Steen|Seebach|1995}}; {{harvtxt|Smyth|1987}}&amp;lt;/ref&amp;gt; The name of this generalisation is not entirely standardized.&amp;lt;ref&amp;gt;{{harvtxt|Rolewicz|1987}} calls them &amp;quot;semimetrics&amp;quot;. That same term is also frequently used for two other generalizations of metrics.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# ''d''(''x'', ''y'') ≥ 0 (''positivity'')&lt;br /&gt;
# ''d''(''x'', ''y'') = 0 &amp;amp;nbsp; if and only if &amp;amp;nbsp; ''x'' = ''y'' (''positive definiteness'')&lt;br /&gt;
# &amp;lt;del&amp;gt;''d''(''x'', ''y'') = ''d''(''y'', ''x'')&amp;lt;/del&amp;gt; (''symmetry'', dropped)&lt;br /&gt;
# ''d''(''x'', ''z'') ≤ ''d''(''x'', ''y'') + ''d''(''y'', ''z'') (''triangle inequality'')&lt;br /&gt;
&lt;br /&gt;
Quasimetrics are common in real life. For example, given a set ''X'' of mountain villages, the typical walking times between elements of ''X'' form a quasimetric because travel up hill takes longer than travel down hill. Another example is a [[taxicab geometry]] topology having one-way streets, where a path from point ''A'' to point ''B'' comprises a different set of streets than a path from ''B'' to ''A''.&lt;br /&gt;
&lt;br /&gt;
A quasimetric on the reals can be defined by setting&lt;br /&gt;
:''d''(''x'', ''y'') = ''x'' − ''y'' if ''x'' ≥ ''y'', and&lt;br /&gt;
:''d''(''x'', ''y'') = 1 otherwise. The 1 may be replaced by infinity or by &amp;lt;math&amp;gt;1 + 10^{(y-x)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
The topological space underlying this quasimetric space is the [[Sorgenfrey line]]. This space describes the process of [[Filing (metalworking)|filing down]] a metal stick: it is easy to reduce its size, but it is difficult or impossible to grow it.&lt;br /&gt;
&lt;br /&gt;
If ''d'' is a quasimetric on ''X'', a metric ''d&amp;lt;nowiki&amp;gt;'&amp;lt;/nowiki&amp;gt;'' on ''X'' can be formed by taking&lt;br /&gt;
:''d&amp;lt;nowiki&amp;gt;'&amp;lt;/nowiki&amp;gt;''(''x'', ''y'') = {{sfrac|2}}(''d''(''x'', ''y'') + ''d''(''y'', ''x'')).&lt;br /&gt;
&lt;br /&gt;
=== Important cases of generalized metrics ===&lt;br /&gt;
In [[differential geometry]], one considers a [[metric tensor]], which can be thought of as an &amp;quot;infinitesimal&amp;quot; quadratic metric function. This is defined as a [[nondegenerate]] symmetric [[bilinear form]] on the [[tangent space]] of a [[manifold]] with an appropriate [[differentiability]] requirement.  While these are not metric functions as defined in this article, they induce what is called a pseudo-semimetric function by [[Antiderivative|integration]] of its square root along a path through the manifold. If one imposes the positive-definiteness requirement of an [[inner product]] on the metric tensor, this restricts to the case of a [[Riemannian manifold]], and the path integration yields a metric.&lt;br /&gt;
&lt;br /&gt;
In [[general relativity]] the related concept is a [[metric tensor (general relativity)]] which expresses the structure of a [[pseudo-Riemannian manifold]]. Though the term &amp;quot;metric&amp;quot; is used, the fundamental idea is different because there are non-zero [[null vector]]s in the tangent space of these manifolds, and vectors can have negative squared norms. This generalized view of &amp;quot;metrics&amp;quot;, in which zero distance does ''not'' imply identity, has crept into some mathematical writing too:&amp;lt;ref&amp;gt;{{harvtxt|Parrott|1987}}: &amp;quot;This bilinear form is variously called the ''Lorentz metric'', or ''Minkowski metric'' or ''metric tensor''&amp;quot;; {{harvtxt|Cecil|2008}}: &amp;quot;We call this scalar product the ''Lorentz metric''&amp;quot;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Metric_(mathematics) Metric (mathematics), Wikipedia] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
</feed>