<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/index.php?action=history&amp;feed=atom&amp;title=Parallax_barrier</id>
	<title>Parallax barrier - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/index.php?action=history&amp;feed=atom&amp;title=Parallax_barrier"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Parallax_barrier&amp;action=history"/>
	<updated>2026-04-24T17:36:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0-wmf.28</generator>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=Parallax_barrier&amp;diff=14892&amp;oldid=prev</id>
		<title>en&gt;RjwilmsiBot: CiteCompletion, dates: 3,  using AWB (9488)</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Parallax_barrier&amp;diff=14892&amp;oldid=prev"/>
		<updated>2013-09-22T17:47:16Z</updated>

		<summary type="html">&lt;p&gt;CiteCompletion, dates: 3,  using &lt;a href=&quot;/index.php?title=Testwiki:AWB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Testwiki:AWB (page does not exist)&quot;&gt;AWB&lt;/a&gt; (9488)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{About|the measure|other uses|Jaro (disambiguation){{!}}Jaro}}&lt;br /&gt;
&lt;br /&gt;
{{Original research|date=May 2013}}&lt;br /&gt;
{{Notability|date=May 2013}}&lt;br /&gt;
&lt;br /&gt;
In [[computer science]] and [[statistics]], the &amp;#039;&amp;#039;&amp;#039;Jaro–Winkler distance&amp;#039;&amp;#039;&amp;#039; (Winkler, 1990) is a measure of similarity between two [[String (computer science)|strings]].  It is a variant of the &amp;#039;&amp;#039;&amp;#039;Jaro distance&amp;#039;&amp;#039;&amp;#039; metric (Jaro, 1989, 1995), a type of string [[edit distance]], and mainly {{Citation needed|date=January 2011}} used in the area of [[record linkage]] (duplicate detection). The higher the Jaro–Winkler distance for two strings is, the more similar the strings are.  The Jaro–Winkler distance metric is designed and best suited for short strings such as person names.  The score is normalized such that 0 equates to no similarity and 1 is an exact match.&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&lt;br /&gt;
The Jaro distance &amp;lt;math&amp;gt;d_j&amp;lt;/math&amp;gt; of two given strings &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_j = \left\{&lt;br /&gt;
&lt;br /&gt;
\begin{array}{l l}&lt;br /&gt;
  0 &amp;amp; \text{if }m = 0\\&lt;br /&gt;
  \frac{1}{3}\left(\frac{m}{|s_1|} + \frac{m}{|s_2|} + \frac{m-t}{m}\right) &amp;amp; \text{otherwise} \end{array} \right.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is the number of &amp;#039;&amp;#039;matching characters&amp;#039;&amp;#039; (see below);&lt;br /&gt;
* &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; is half the number of &amp;#039;&amp;#039;transpositions&amp;#039;&amp;#039; (see below).&lt;br /&gt;
&lt;br /&gt;
Two characters from &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt; respectively, are considered &amp;#039;&amp;#039;matching&amp;#039;&amp;#039; only if they are the same and not farther than &amp;lt;math&amp;gt;\left\lfloor\frac{\max(|s_1|,|s_2|)}{2}\right\rfloor-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Each character of &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; is compared with all its matching&lt;br /&gt;
characters in &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt;. The number of matching (but different sequence order) characters&lt;br /&gt;
divided by 2 defines the number of &amp;#039;&amp;#039;transpositions&amp;#039;&amp;#039;.&lt;br /&gt;
For example, in comparing CRATE with TRACE, only &amp;#039;R&amp;#039;   &amp;#039;A&amp;#039;   &amp;#039;E&amp;#039;  are the matching characters, i.e. m=3. Although &amp;#039;C&amp;#039;, &amp;#039;T&amp;#039; appear in both strings, they are farther than 1, i.e., floor(5/2)-1=1. Therefore, t=0 . In DwAyNE versus DuANE the matching letters are already in the same order D-A-N-E, so no transpositions are needed.&lt;br /&gt;
&lt;br /&gt;
Jaro–Winkler distance uses a [[prefix]] scale &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; which gives more favourable ratings to strings that match from the beginning for a set prefix length &amp;lt;math&amp;gt;\ell&amp;lt;/math&amp;gt;.  Given two strings &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt;, their Jaro–Winkler distance &amp;lt;math&amp;gt;d_w&amp;lt;/math&amp;gt; is:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_w = d_j + (\ell p (1 - d_j))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;d_j&amp;lt;/math&amp;gt; is the Jaro distance for strings &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\ell&amp;lt;/math&amp;gt; is the length of common prefix at the start of the string up to a maximum of 4 characters&lt;br /&gt;
* &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is a constant [[scaling factor]] for how much the score is adjusted upwards for having common prefixes.  &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; should not exceed 0.25, otherwise the distance can become larger than 1.  The standard value for this constant in Winkler&amp;#039;s work is &amp;lt;math&amp;gt;p = 0.1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although often referred to as a &amp;#039;&amp;#039;distance metric&amp;#039;&amp;#039;, the Jaro–Winkler distance is actually not a [[metric (mathematics)|metric]] in the mathematical sense of that term because it does not obey the [[triangle inequality]] [http://richardminerich.com/tag/jaro-winkler/].&lt;br /&gt;
&lt;br /&gt;
In some implementations of Jaro-Winkler, the prefix bonus &amp;lt;math&amp;gt;\ell p (1 - d_j)&amp;lt;/math&amp;gt; is only added when the compared strings have a Jaro distance above a set &amp;quot;boost threshold&amp;quot; &amp;lt;math&amp;gt;b_t&amp;lt;/math&amp;gt;. The boost threshold in Winkler&amp;#039;s implementation was 0.7.&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_w = \left\{&lt;br /&gt;
&lt;br /&gt;
\begin{array}{l l}&lt;br /&gt;
  d_j &amp;amp; \text{if }d_j &amp;lt; b_t\\&lt;br /&gt;
  d_j + (\ell p (1 - d_j)) &amp;amp; \text{otherwise} \end{array} \right.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note that Winkler&amp;#039;s &amp;quot;reference&amp;quot; C code differs in at least two ways from published accounts of the Jaro–Winkler metric. First is his use of a typo table (adjwt) and also some optional additional tolerance for long strings.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Given the strings &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; &amp;#039;&amp;#039;MARTHA&amp;#039;&amp;#039; and &amp;lt;math&amp;gt;s_2 &amp;lt;/math&amp;gt; &amp;#039;&amp;#039;MARHTA&amp;#039;&amp;#039; we find:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;m = 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|s_1| = 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|s_2| = 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* There are mismatched characters T/H and H/T leading to &amp;lt;math&amp;gt;t = \frac{2}{2} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We find a Jaro score of:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_j = \frac{1}{3}\left(\frac{6}{6} + \frac{6}{6} + \frac{6-1}{6}\right) = 0.944&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find the Jaro–Winkler score using the standard weight &amp;lt;math&amp;gt;p = 0.1&amp;lt;/math&amp;gt;, we continue to find:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\ell = 3&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_w = 0.944 + (3 * 0.1 (1 - 0.944)) = 0.961&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given the strings &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; &amp;#039;&amp;#039;DWAYNE&amp;#039;&amp;#039; and &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt; &amp;#039;&amp;#039;DUANE&amp;#039;&amp;#039; we find:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;m = 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|s_1| = 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|s_2| = 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;t = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We find a Jaro score of:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_j = \frac{1}{3}\left(\frac{4}{6} + \frac{4}{5} + \frac{4-0}{4}\right) = 0.822&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find the Jaro–Winkler score using the standard weight &amp;lt;math&amp;gt;p = 0.1&amp;lt;/math&amp;gt;, we continue to find:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\ell = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_w = 0.822 + (1 * 0.1 (1 - 0.822)) = 0.84&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given the strings &amp;lt;math&amp;gt;s_1&amp;lt;/math&amp;gt; &amp;#039;&amp;#039;DIXON&amp;#039;&amp;#039; and &amp;lt;math&amp;gt;s_2&amp;lt;/math&amp;gt; &amp;#039;&amp;#039;DICKSONX&amp;#039;&amp;#039; we find:&lt;br /&gt;
&lt;br /&gt;
{{elucidate|date=March 2013}}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
| D&lt;br /&gt;
| I&lt;br /&gt;
| X&lt;br /&gt;
| O&lt;br /&gt;
| N&lt;br /&gt;
|-&lt;br /&gt;
| D&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;1&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| I&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;1&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
|-&lt;br /&gt;
| C&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
|-&lt;br /&gt;
| K&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
|-&lt;br /&gt;
| S&lt;br /&gt;
| 0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
|-&lt;br /&gt;
| O&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;1&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
|-&lt;br /&gt;
| N&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;1&lt;br /&gt;
|-&lt;br /&gt;
| X&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| &amp;lt;span style=&amp;quot;background: #ffcc33&amp;quot;&amp;gt;0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;m = 4&amp;lt;/math&amp;gt;  Note that the two &amp;#039;&amp;#039;X&amp;#039;&amp;#039;s are not considered matches because they are outside the match window of 3.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|s_1| = 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|s_2| = 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;t = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We find a Jaro score of:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_j = \frac{1}{3}\left(\frac{4}{5} + \frac{4}{8} + \frac{4-0}{4}\right) = 0.767&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find the Jaro–Winkler score using the standard weight &amp;lt;math&amp;gt;p = 0.1&amp;lt;/math&amp;gt;, we continue to find:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\ell = 2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;d_w = 0.767 + (2 * 0.1 (1 - 0.767)) = 0.813&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Levenshtein distance]]&lt;br /&gt;
* [[Record linkage]]&lt;br /&gt;
* [[Census]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* {{cite journal | author = [[Matthew A. Jaro|Jaro, M. A.]] | title = Advances in record linkage methodology as applied to the 1985 census of Tampa Florida | journal = Journal of the American Statistical Association | year = 1989 | volume = 84 | issue = 406 |pages=414–20| url = | doi = 10.1080/01621459.1989.10478785 }}&lt;br /&gt;
* {{cite journal |author=Jaro, M. A. |title=Probabilistic linkage of large public health data file  |journal= Statistics in Medicine |year=1995 |volume=14 |issue=5–7 |pages=491–8  |pmid=7792443 |doi=10.1002/sim.4780140510}}&lt;br /&gt;
* {{cite journal&lt;br /&gt;
&lt;br /&gt;
  | author = [[William E. Winkler|Winkler, W. E.]]&lt;br /&gt;
  | title = String Comparator Metrics and Enhanced Decision Rules in the Fellegi-Sunter Model of Record Linkage&lt;br /&gt;
  | journal = Proceedings of the Section on Survey Research Methods&lt;br /&gt;
  | publisher = American Statistical Association&lt;br /&gt;
  | pages = 354–359&lt;br /&gt;
  | year = 1990&lt;br /&gt;
  | url = http://www.amstat.org/sections/srms/Proceedings/papers/1990_056.pdf }}&lt;br /&gt;
&lt;br /&gt;
* {{cite journal | author = [[William E. Winkler|Winkler, W. E.]] | title = Overview of Record Linkage and Current Research Directions | journal = Research Report Series, RRS | year = 2006 | volume = | issue = | url = http://www.census.gov/srd/papers/pdf/rrs2006-02.pdf}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* [http://web.archive.org/web/20100227020019/http://www.census.gov/geo/msb/stand/strcmp.c strcmp.c - Original C Implementation by the author of the algorithm]&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Jaro-Winkler distance}}&lt;br /&gt;
&lt;br /&gt;
[[Category:String similarity measures]]&lt;/div&gt;</summary>
		<author><name>en&gt;RjwilmsiBot</name></author>
	</entry>
</feed>