Compute distance matrix for given distance measure; note: distance between rows!

getDist(X, dist.method, cor.method = "pearson")

Arguments

X

Matrix used to calculate the distance

dist.method

The distance method to use in the calculation

cor.method

The correlation method to use. 'pearson' is the default,

Value

the found distance

Examples

example_dta<-create_example_data_for_R()
X=as.matrix(example_dta$counts)
#Get distance matrix
dX <- getDist(X,dist.method='euclidean',cor.method='pearson')