Description Usage Arguments Examples
Wrapper for GP likelihood maximisation
1 | wrap_ll(theta, y, kernelList, xList)
|
theta |
parameters to be estimated |
y |
observations |
kernelList |
list of kernels |
xList |
list of features |
1 2 3 4 5 6 7 8 9 | kernelList = list(k_longterm, k_seasonal, k_spatial)
attr(kernelList, "name") <- c("long term", "seasonal", "spatial")
attr(kernelList, "parameters") <- list(c("q1","q2"), c("q3","q4","qs", "f"), c("s1", "s2"))
theta = c(log(2),log(1),log(1),log(1),log(1),log(1),log(1), log(1), log(0.2))
t = matrix(rep(seq(0,10,1),11), ncol = 1)
s = expand.grid(seq(0,10,length.out=11), seq(0,10,length.out = 11))
y = cos(rowSums(s) * t)
xList = list(t,t,s)
ll = wrap_ll(theta, y, kernelList,xList)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.