# NOT RUN {
# X, Y are vectors with 10 samples and 1 variable
X <- rnorm(10)
Y <- rnorm(10)
mdd(X, Y, compute = "C")
mdd(X, Y, compute = "R")
# X, Y are 10 x 2 matrices with 10 samples and 2 variables
X <- matrix(rnorm(10 * 2), 10, 2)
Y <- matrix(rnorm(10 * 2), 10, 2)
mdd(X, Y, center = "U")
mdd(X, Y, center = "D")
# }
Run the code above in your browser using DataLab