CauchyPrior: CauchyPrior

Description Usage Arguments Value Author(s) Examples

Description

Generate samples from the Cauchy prior

Usage

1
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

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

Example output

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
-61.194   3.494   4.861  12.713   7.187 726.543 

babar documentation built on May 1, 2019, 10:18 p.m.