getLpDistance {flintyR} | R Documentation |
A
Distance Vector Calculator
Description
Computes all pairwise distances for a real matrix
,
for a specified choice of Minkowski norm exponent
.
Usage
getLpDistance(X, p)
Arguments
X |
The |
p |
The power p of |
Details
Dependencies: lp_distance from fast_dist_calc.cpp
Value
A length vector of pairwise
distances
Examples
X <- matrix(nrow = 5, ncol = 10, rnorm(50))
getLpDistance(X, p = 2)
[Package flintyR version 0.1.0 Index]