CauchyPrior {babar}R Documentation

CauchyPrior

Description

Generate samples from the Cauchy prior

Usage

CauchyPrior(u, location, scale)

Arguments

u

Input scalar/vector of values between 0 and 1

location

The location parameter (the peak of the distribution)

scale

The scale factor (full width at half maximum)

Value

Samples from Cauchy prior

Author(s)

Lydia Rickett, Matthew Hartley, Richard Morris and Nick Pullen

Examples

samples <- CauchyPrior(runif(100), 5, 2)
summary(samples)

[Package babar version 1.0 Index]