create_basis: Create basis objects

Description Usage Arguments Value Author(s) See Also Examples

Description

These functions create different basis objects, which can be used as input to complex functions in order to perform computations depending on the class of the basis function.

Usage

1
2
3
4
5
6
7
create_rbf_object(
  M = 8,
  gamma = NULL,
  mus = NULL,
  eq_spaced_mus = TRUE,
  whole_region = TRUE
)

Arguments

M

The number of the basis functions. In case of Fourier basis, this number should be even, since we need to have pairs of sines and cosines and the constant term is added by default.

gamma

Inverse width of radial basis function.

mus

Optional centers of the RBF.

eq_spaced_mus

Logical, if TRUE, equally spaced centers are created, otherwise centers are created using kmeans algorithm.

whole_region

Logical, indicating if the centers will be evaluated equally spaced on the whole region, or between the min and max of the observation values.

Value

A basis object of class 'rbf'.

Author(s)

Hongen Kang geneprophet@163.com

See Also

design_matrix

Examples

1
2
3
human_basis_profile <- create_rbf_object(M = 8)
human_basis_mean <- create_rbf_object(M = 0)
#---------------------------------

geneprophet/BSDMR documentation built on March 3, 2021, 5:50 a.m.