You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brms has now all other HSGP kernels from HSGP paper except periodic. The code for the HSGP paper periodic is
matrix PHI_periodic(int N, int M, real w0, vector x) {
matrix[N,M] mw0x = diag_post_multiply(rep_matrix(w0*x, M), linspaced_vector(M, 1, M));
return append_col(cos(mw0x), sin(mw0x));
}
vector diagSPD_periodic(real alpha, real rho, int M) {
real a = 1/rho^2;
vector[M] q = exp(log(alpha) + 0.5 * (log(2) - a + to_vector(log_modified_bessel_first_kind(linspaced_int_array(M, 1, M), a))));
return append_row(q,q);
}
where M is the number of basis functions, w0 is the period length (fine to be fixed as part of gp() arguments), and rho is the lengthscale.
The text was updated successfully, but these errors were encountered:
brms has now all other HSGP kernels from HSGP paper except periodic. The code for the HSGP paper periodic is
where
M
is the number of basis functions,w0
is the period length (fine to be fixed as part of gp() arguments), andrho
is the lengthscale.The text was updated successfully, but these errors were encountered: