gpPosteriorMeanVar: Mean and variances of the posterior at points given by X.

Description Usage Arguments Value See Also Examples

View source: R/gpPosteriorMeanVar.R

Description

returns the posterior mean and variance for a given set of points.

Usage

1
gpPosteriorMeanVar(model, X, varsigma.return=FALSE)

Arguments

model

the model for which the posterior will be computed.

X

the input positions for which the posterior will be computed.

varsigma.return

(logical) compute variances.

Value

mu

the mean of the posterior distribution.

sigma

the variances of the posterior distributions.

See Also

gpCreate.

Examples

1
## missing

Example output

Loading required package: Matrix
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps

gptk documentation built on May 30, 2017, 6:41 a.m.