You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The help page of computeAverageHausdorffDistance says, the default of the dist.fun argument is computeEuclideanDist and also computeEuclideanDistance. But when you try to assign this default it throws an error, but when you omit the argument at all, it runs correctly or when you write a dist.fun yourself.
Maybe you could rephrase the help page so its clear not to assign anything if euclidian distance is desired.
A small exampe is also always helpful. I wrote you a mini-example if you want to use it:
matA <- matrix(
c(x = runif(10, 15, 19),
y = runif(10, 50, 55)),
ncol = 2, byrow = F)
matB <- matrix(
c(x = runif(10, 15, 19),
y = runif(10, 50, 55)),
ncol = 2, byrow = F)
## Use computeEuclideanDistance function
ecr::computeAverageHausdorffDistance(A = matA, B = matB,
p = 1, normalize = FALSE)
## Define a custom distance function
ecr::computeAverageHausdorffDistance(A = matA, B = matB,
p = 1, normalize = FALSE,
dist.fun = function(x) {sqrt(sum(x^4))})
The text was updated successfully, but these errors were encountered:
The help page of computeAverageHausdorffDistance says, the default of the dist.fun argument is computeEuclideanDist and also computeEuclideanDistance. But when you try to assign this default it throws an error, but when you omit the argument at all, it runs correctly or when you write a dist.fun yourself.
Maybe you could rephrase the help page so its clear not to assign anything if euclidian distance is desired.
A small exampe is also always helpful. I wrote you a mini-example if you want to use it:
The text was updated successfully, but these errors were encountered: