Learn R Programming

babar (version 1.0)

CauchyPrior: 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

Examples

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

Run the code above in your browser using DataLab