make_basis: Generate the basis function expansion

View source: R/make_basis.R

make_basisR Documentation

Generate the basis function expansion

Description

Generate the basis function expansion

Usage

make_basis(d, radius, basis_type = "wendland", use_spam = TRUE)

Arguments

d

A vector of distances

radius

A radius

basis_type

The basis function type. Currently, only "wendland" basis functions are allowed

use_spam

is a boolean flag to determine whether the output is a list of spam::spam matrix objects (use_spam = TRUE) or a an n \times n sparse Matrix of class Matrix::dgCMatrix use_spam = FALSE (see spam and Matrix packages for details).

Value

The output of the basis function


jtipton25/BayesMRA documentation built on Feb. 28, 2024, 1:27 p.m.