A function that returns a distance matrix given a collection of observations.
mgc.distance(X, method = "euclidean")[n x d] a data matrix for d samples of d variables.
the method for computing distances. Defaults to 'euclidean'. See dist for details. Also
includes a "ohe" option, which one-hot-encodes the matrix when computing distances.
a [n x n] distance matrix indicating the pairwise distances between all samples passed in.