initialize_basisfun: Initialize basis function parameters

View source: R/basisFunInitAndCompute.R

initialize_basisfunR Documentation

Initialize basis function parameters

Description

Initializes the parameter list needed for a basis function.

Usage

initialize_basisfun(
  basisFunctionsUsed,
  dimension,
  lengthscale,
  opts_BasisFun = list()
)

Arguments

basisFunctionsUsed

Character. The type of basis function to use. One of: "inducing points", "RFF", "Discrete FF", "filling FF", "custom cosines".

dimension

Integer. Dimension of the input space [\mathbf{x},\,t].

lengthscale

Numeric vector. Lengthscales used for scaling the input space.

opts_BasisFun

List. Optional. Additional options specific to the chosen basis function. If the type is "custom cosines", the basis functions considered are coef\cos(freq^\top [x, t] + offset) and the user must provide three vectors: opts_BasisFun$freq, opts_BasisFun$offset and opts_BasisFun$coef. Users can refer to the documentation of specific basis function initialization functions (e.g., initialize_basisfun_inducingpt, initialize_basisfun_RFF, initialize_basisfun_fillingRFF, initialize_basisfun_discreteFF, etc.) for details on the available options.

Value

A list of initialized basis function parameters.


SLGP documentation built on Sept. 9, 2025, 5:25 p.m.