ExponentialPrior {babar}R Documentation

ExponentialPrior

Description

Generate samples from the exponential prior

Usage

ExponentialPrior(u, rate)

Arguments

u

Input scalar/vector of values between 0 and 1

rate

The rate paramter (such that the mean of the distribution is 1 / rate)

Value

Samples from the Exponential prior

Author(s)

Lydia Rickett, Matthew Hartley, Richard Morris and Nick Pullen

Examples

samples <- ExponentialPrior(runif(100), 5)
summary(samples)

[Package babar version 1.0 Index]