log_post: Log posterior of Matern5_2 kernel

View source: R/log_post.R

log_postR Documentation

Log posterior of Matern5_2 kernel

Description

Compute the log posterior of the Matern5_2 kernel.

Usage

log_post(param, object, C)

Arguments

param

hyperparameters.

object

a FastGaSP object.

C

parameter.

References

Gu, M., & Xu, Y. (2020). Fast nonseparable Gaussian stochastic process with application to methylation level interpolation. Journal of Computational and Graphical Statistics, 29(2), 250-260. doi: 10.1080/10618600.2019.1665534

Examples


sites = sort(runif(100))
Y = sin(2*pi*sites)
C = diff(range(sites))/length(sites)
fgasp.model = fgasp(sites,Y, have_noise = TRUE)
log_post(c(log(1 / C), 1),fgasp.model,C)


melinaR/olsgasp documentation built on March 11, 2023, 12:10 a.m.