Learn R Programming

lgcp (version 1.3-8)

LogGaussianPrior: LogGaussianPrior function

Description

A function to create a Gaussian prior on the log scale

Usage

LogGaussianPrior(mean, variance)

Arguments

mean
a vector of length 2 representing the mean (on the log scale)
variance
a 2x2 matrix representing the variance (on the log scale)

Value

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

See Also

GaussianPrior, link{PriorSpec.list}

Examples

Run this code
LogGaussianPrior(mean=log(c(1,500)),variance=diag(0.15,2))

Run the code above in your browser using DataLab