Skip to contents

distance_matrix

Usage

distance_matrix(x, power = 1, dim = 2)

Arguments

x

matrix of locations in physical or parameter space

power

exponent used for calculating distance, default value of 2 = Pythagorean distance

dim

dimension

Value

symmetric matrix of pairwise squared distances

Author

Michael Dietze