Skip to content

Commit

Permalink
fix issue in computeGenerationalDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Aug 10, 2015
1 parent 8484ab5 commit f2e69a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/computeAverageHausdorffDistance.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ computeAverageHausdorffDistance = function(A, B, p = 1) {
#'
#' @export
computeGenerationalDistance = function(A, B, p = 1) {
dists = apply(A, 1L, function(a) computeDistanceFromPointToSetOfPoints, B)
dists = apply(A, 1L, function(a) computeDistanceFromPointToSetOfPoints(a, B))
GD = mean(dists^p)^(1 / p)
return(GD)
}
Expand Down

0 comments on commit f2e69a3

Please sign in to comment.