laplacian {less} | R Documentation |
Laplacian kernel - L1 norm
Description
An alternative distance function that can be used in LESS.
Usage
laplacian(data, center, coeff = 0.01)
Arguments
data |
Data that includes points in shape of (M x d) |
center |
A constant point in shape of (1 x d) |
coeff |
Coefficient value for Laplacian kernel |
Value
A numeric vector containing the laplacian kernel distance between each point in data and center.
Examples
data <- matrix(1:12, nrow=3)
center <- c(2, 7, 1, 3)
distances <- laplacian(data, center)
print(distances)
[Package less version 0.1.0 Index]