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 8d6e093 commit 265a363Copy full SHA for 265a363
src/metrics.jl
@@ -574,7 +574,7 @@ end
574
a = s1[1] + s2[1]
575
b = s1[2] + s2[2]
576
c = s1[3] + s2[3]
577
- d = s1[4] + s1[4]
+ d = s1[4] + s2[4]
578
end
579
a, b, c, d
580
test/test_dists.jl
@@ -198,6 +198,12 @@ end
198
bf = [false, true, true]
199
@test rogerstanimoto(bt, bf) == 4.0 / 5.0
200
@test braycurtis(bt, bf) == 0.5
201
+ b1 = [true, false, false]
202
+ b2 = [false, true, false]
203
+ @test rogerstanimoto(b1, b2) == 4.0 / 5.0
204
205
+ b2 = [true, true, false]
206
+ @test rogerstanimoto(b1, b2) == 1.0 / 2.0
207
208
for w in (2, (2,))
209
@test wsqeuclidean(a, b, w) === 2
0 commit comments