| getLpDistance | R Documentation |
l_p^p Distance Vector CalculatorComputes all pairwise l_p^p distances for a real matrix \mathbf{X},
for a specified choice of Minkowski norm exponent p.
getLpDistance(X, p)
X |
The |
p |
The power p of |
Dependencies: lp_distance from fast_dist_calc.cpp
A length {N \choose 2} vector of pairwise l_p^p distances
X <- matrix(nrow = 5, ncol = 10, rnorm(50))
getLpDistance(X, p = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.