RBF: Radial Basis Function

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

RBF() is a utility function for RBF transform.

Usage

1
2
3
4
5
6
7
8
RBF(
  x,
  centers,
  Kernel = Gaussian,
  scale = 1,
  include_bias = TRUE,
  normalize = FALSE
)

Arguments

x

a data matrix, where rows are observations and columns are dimensions.

centers

a matrix for cluster centers

Kernel

radial functions

scale

scale parameter, or bandwidth

include_bias

if TRUE, include a column of ones

normalize

if TRUE, features (expect for bias) are normalized

Value

transformed matrix

See Also

Gaussian

Examples

1
2
3
x <- matrix(rnorm(20), 10, 2)
centers <- kmeans(x, 2)$centers
RBF(x, centers)

XiaoqiLu/PhD-Thesis documentation built on March 1, 2021, 10:49 a.m.