x <- matrix(c(runif(100, 0, 1),
runif(100, -1, 1)),
ncol = 2)
y <- matrix(c(runif(100, 0, 3),
runif(100, -1, 1)),
ncol = 2)
# Set iterations to small number for runtime
# Increase for more accurate results
wasserstein_permut(x, y, iterations = 10^2)
Run the code above in your browser using DataLab