pull/3/head
matthieugomez 2015-11-09 14:40:13 -05:00
parent dee136e1c3
commit 9e066e3c5a
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ evaluate(QGram(2), "martha", "marhta")
```
#### compare
The higher level function `compare` returns *a similarity score* between two strings. The similarity score is always between 0 and 1. A value of 0 being completely different and a value of 1 being completely similar.
The higher level function `compare` returns *a similarity score* between two strings. The similarity score is always between 0 and 1. A value of 0 being completely different and a value of 1 being completely similar. The output of compare is generally 1 - normalized distance, with some care for `NaN` values.
```julia
using StringDistances
compare(Hamming(), "martha", "marhta")