Gaussian Process Modelling

R functions for Gaussian process (GP) modelling. The core functions are coded in C++ and based on the EIGEN library (through RcppEigen)

Feature Implementation Checklist

Core Capabilities & Completed Features

Planned & Future Enhancements

Core Technical Implementation Details

Feature / Utility Module / Rcpp Source Description
Model Fitting gpFit, gpNegLogLik Fits covariance parameters and mean model coefficients using numerical gradient optimization.
Covariance Kernels covm.cpp, covm Computes covariance matrices for Matérn (3/2, 5/2), Gaussian, Exponential, and Linear kernels.
Likelihood Calculation gpLogLik.cpp, gpLogLik Evaluates the log marginal likelihood of conditioned Gaussian processes.
Simulation gpSim Generates sample trajectories/realizations across user-defined spatial-temporal grids.
Numerical Stability cholfac, correctCovMat Handles ill-conditioned covariance matrices by adding diagonal jitter or correcting non-positive eigenvalues.
Grid Generation matGrid, vecGrid Constructs evaluation coordinate matrices for predictions and spatial-temporal visualization.

This is an ongoing project. If you have any questions, requirements, suggestions, don’t hesitate to contact me (in english, french or german):
emanuel.huber@alumni.ethz.ch</p>

Thank you!

How to install/load

1. Install R

Download R from the R Cran website and install it.

  1. Optionally install a R-editor:
  2. If necessary, learn some R basics:

2. Install a R-editor [optionally]

Possible R-editor choices:

3. Install & load GauProMod

if(!require("devtools")) install.packages("devtools")
devtools::install_github("emanuelhuber/GauProMod")
library(GauProMod)