Jump to content

Jaro similarity: Difference between revisions

mNo edit summary
(→‎{{header|jq}}: if .m == 0)
Line 1,746:
.m+=1)
| when($l2 == $l1; .p += 1) ) ) )
| ((if .m-.p)/2) as== 0 then 0 $t
| ( (.m/$len1) + (.m/$len2) +else ((.m-$t.p)/.m2) )as / 3$t
| (1/3) * ( (.m/$len1) + (.m/$len2) + ((.m-$t)/.m) )
;
end ;
;
jaro("MARTHA";"MARHTA")
, jaro("DIXON"; "DICKSONX")
2,467

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.