We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b69a69 commit 97f3024Copy full SHA for 97f3024
src/main/java/info/debatty/java/stringsimilarity/StringSet.java
@@ -54,6 +54,6 @@ public double sorensenDiceSimilarity(StringSet other) throws Exception {
54
throw new Exception("Profiles were not created using the same kshingling object!");
55
}
56
57
- return 2 * this.vector.intersection(other.vector) / (this.vector.size() + other.vector.size());
+ return 2.0 * this.vector.intersection(other.vector) / (this.vector.size() + other.vector.size());
58
59
0 commit comments