Learn R Programming

lgcp (version 1.8)

GaussianPrior: GaussianPrior function

Description

A function to create a Gaussian prior.

Usage

GaussianPrior(mean, variance)

Arguments

mean

a vector of length 2 representing the mean.

variance

a 2x2 matrix representing the variance.

Value

an object of class LogGaussianPrior that can be passed to the function PriorSpec.

See Also

LogGaussianPrior, linkPriorSpec.list

Examples

Run this code
# NOT RUN {
GaussianPrior(mean=rep(0,9),variance=diag(10^6,9))
# }

Run the code above in your browser using DataLab