mgc.distance {mgc}R Documentation

Distance

Description

A function that returns a distance matrix given a collection of observations.

Usage

mgc.distance(X, method = "euclidean")

Arguments

X

[n x d] a data matrix for d samples of d variables.

method

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.

Value

a [n x n] distance matrix indicating the pairwise distances between all samples passed in.

Author(s)

Eric Bridgeford


[Package mgc version 2.0.2 Index]