Learn R Programming

nimblewomble (version 0.1.0)

curvatures_gaussian: Posterior samples of rates of change (gradients and curvatures) for the Matern kernel with \(\nu\to\infty\) producing the squared exponential kernel.

Description

For internal use only.

Usage

curvatures_gaussian(dists.1, dists.2, dists.3, z, phi, sigma2)

Value

A matrix of posterior samples for the gradient and curvatures. For internal use only.

Arguments

dists.1

distance matrix generated from coordinates

dists.2

distance of grid from coordinates

dists.3

delta = coordinate - grid

z

posterior samples of \(Z(s)\)

phi

posterior samples of \(\phi\)

sigma2

posterior samples of \(\sigma^2\)

Author

Aritra Halder <aritra.halder@drexel.edu>,
Sudipto Banerjee <sudipto@ucla.edu>

Examples

Run this code
if (FALSE) {
#####################
# Internal use only #
#####################
# Example usage inside of nimblewomble::sprates()
 CG = compileNimble(curvatures_gaussian)
 sprates = CG(dists.1 = distM,
              dists.2 = dist.2,
              dists.3 = dist.3,
              z = z,
              phi = phi,
              sigma2 = sigma2)
}

Run the code above in your browser using DataLab