We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b0cbb commit 17d35f1Copy full SHA for 17d35f1
1 file changed
src/F23.StringSimilarity/SorensenDice.cs
@@ -29,7 +29,8 @@
29
// ReSharper disable LoopCanBeConvertedToQuery
30
31
namespace F23.StringSimilarity
32
-{ /// <summary>
+{
33
+ /// <summary>
34
/// Similar to Jaccard index, but this time the similarity is computed as 2 * |V1
35
/// inter V2| / (|V1| + |V2|). Distance is computed as 1 - cosine similarity.
36
/// </summary>
@@ -89,7 +90,7 @@ public double Similarity(string s1, string s2)
89
90
var union = new HashSet<string>();
91
union.UnionWith(profile1.Keys);
92
union.UnionWith(profile2.Keys);
-
93
+
94
int inter = 0;
95
96
foreach (var key in union)
0 commit comments