Learn R Programming

outerbase (version 0.1.0)

outerbase: Outer product-type basis

Description

ob = new(outerbase, om, x)

Class that handles the basis for a given set of points x.

Arguments

x

a matrix of predictors, must have as many columns as dims in om

Value

no returns, this is a class which contains methods

Fields

nthreads

number of threads for omp to use

outerbase$getbase(k)

to get each dimensions basis functions

outerbase$getmat(terms)

to get the basis matrix at terms

outerbase$build()

to (re)build the basis instance

outerbase$matmul(terms,a)

matrix multiply without building the basis matrix

outerbase$tmatmul(terms,a)

transpose matrix multiply without building the basis matrix

See Also

outermod the core element that controls outerbase

Examples

Run this code
# NOT RUN {
om = new(outermod)
setcovfs(om, c("mat25", "mat25", "mat25"))
setknot(om,
         list(seq(0,1,by=0.025),seq(0,1,by=0.025),seq(0,1,by=0.025)))
x = matrix(runif(10*3),ncol=3)
ob = new(outerbase, om, x)
terms = om$selectterms(40)
basismat = ob$getmat(terms)
# }

Run the code above in your browser using DataLab