Compute gaussian nearest neighbor distances.

GaussianDist(data, ka)

Arguments

data

An M x d matrix or data.frame with M rows of data points and d columns of features.

ka

Number of nearest neighbors. See details from nn2.

Value

Returns the distance matrix.

Examples

{
dist.mat <- GaussianDist(iris[,1:2], ka = 10)
}