pow_abs_dist {adaptr} | R Documentation |
Calculates matrix of absolute distances raised to a power
Description
Used internally, calculates the absolute distances for values in a matrix with possibly unequal dimensions, and raises these to a power.
Usage
pow_abs_dist(x1, x2 = x1, pow = 2)
Arguments
x1 |
numeric vector, with length corresponding to the number of rows in the returned matrix. |
x2 |
numeric vector, with length corresponding to the number of columns
in the returned matrix. If not specified, |
pow |
single numeric value, the power that all distances are raised to.
Defaults to |
Value
Matrix with length(x1)
rows and length(x2)
columns including the
calculated absolute pairwise distances raised to pow
.
[Package adaptr version 1.4.0 Index]