rbf_basis: Apply radial basis function

Description Usage Arguments Value See Also Examples

Description

Apply the RBF function to the input X with center mus.

Usage

1
rbf_basis(X, mus, gamma = 1)

Arguments

X

Input data.

mus

Centers from where we should compute the distance of the data X.

gamma

Inverse width of radial basis function.

Value

Input X, after being transformed from the RBF.

See Also

polynomial_basis

Examples

1
2
3
out <- rbf_basis(X = c(1,2), mus = c(1,1))
#
out <- rbf_basis(X = c(1,2), mus = c(1,1), gamma = 0.1)

andreaskapou/mpgex documentation built on May 12, 2019, 3:33 a.m.