Skip to content

Commit

Permalink
2prev
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Apr 5, 2015
1 parent bde5662 commit 69996ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class OverlapEvaluator {
def div1 = jointSample.getSample(i).diversity,
div2 = jointSample.getSample(j).diversity,
div12 = jointSample.getIntersectionDiv(i, j)
return 1.0 - div12 / (div1 + div2 - div12)
return div12 / (div1 + div2 - div12)

/*
case ChaoSorensen:
Expand Down Expand Up @@ -186,7 +186,7 @@ class OverlapEvaluator {
Dy += y * y
}

return 1.0 - 2 * xy / (Dx + Dy)
return 2 * xy / (Dx + Dy)

case vJSD:
return MathUtil.JSD(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public enum OverlapMetricNormalization {
return -Math.log10(x + 1e-9)
case R:
return (1.0 - x) / 2
case Index:
return 1.0 - x
}
x
}
Expand Down

0 comments on commit 69996ab

Please sign in to comment.