Learn R Programming

less (version 0.1.0)

rbf: RBF kernel - L2 norm

Description

The default distance function in LESS.

Usage

rbf(data, center, coeff = 0.01)

Value

A numeric vector containing the Radial basis function kernel distance between each point in data and center.

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 RBF kernel

Examples

Run this code
data <- matrix(1:12, nrow=3)
center <- c(2, 7, 1, 3)
distances <- rbf(data, center)
print(distances)

Run the code above in your browser using DataLab