summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xreadme.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index eac10f5..ae465a0 100755
--- a/readme.md
+++ b/readme.md
@@ -31,6 +31,18 @@ Output:
0.7142857142857143
```
+__Hamming Metric:__
+```scala
+println(HammingMetric.compare("toned", "roses"))
+println(HammingMetric.compare("1011101", "1001001")
+```
+
+Output:
+```shell
+3
+2
+```
+
## Testing
```shell
$ gradle :stringmetric-core:test