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.
2 parents 0b69a69 + 97f3024 commit ee2b6e5Copy full SHA for ee2b6e5
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