| outermod | R Documentation |
This is a class used to construct outerbase
class instances. It stores key information for constructing a basis.
no returns, this is a class which contains methods
outermod$updatehyp(hyp)update hyperparameters
outermod$selectterms(numterms)find best numterms terms
outermod$getvar(terms)find variances of coefficients
associated with terms
outerbase the main product from an outermod
setcovfs, setknot,
gethyp
om = new(outermod)
setcovfs(om, c("mat25", "mat25", "mat25"))
setknot(om,
list(seq(0,1,by=0.01),seq(0,1,by=0.01),seq(0,1,by=0.01)))
terms = om$selectterms(40)
coeffvar =om$getvar(terms)
hyp = gethyp(om)
hyp[1:2] = 0.5
om$updatehyp(hyp)
coeffvar = om$getvar(terms)