Skip to contents

Computes the radial basis function (RBF) kernel for a distance vector or matrix.

Usage

rbf_kernel(x, theta)

Arguments

x

A numeric vector or matrix of distances.

theta

A positive numeric scalar giving the length-scale parameter.

Value

A numeric vector or matrix with RBF kernel values.