distmat: Calculate the distance matrix of a given vector and a given...

Description Usage Arguments Details Value

View source: R/auxiliary_functions.R

Description

Calculate the distance matrix of a given vector and a given metric.

Usage

1
distmat(X, metr.X = "euclidean", n, p, ...)

Arguments

X

a numeric vector or a numeric matrix.

metr.X

metric that should be used to compute the distance matrix.

n

number of samples, i.e. the number of rows of X..

p

number of repetitions, i.e. the number of columns of X.

...

additional parameters that are used for other metrics (e.g., the bandwidth for Gaussian kernels)

Details

For metr.X the following metrices are built in: euclidean, gaussian and discrete. However, it is possible to use a function taking two numerical arguments as metr.X.

Value

The distance matrix corresponding to X.


jofie/DistCov documentation built on May 23, 2019, 9:02 p.m.