UniformPrior {babar}R Documentation

UniformPrior

Description

Generate samples from uniform distribution

Usage

UniformPrior(u, lowerBound, upperBound)

Arguments

u

Input scalar/vector of values between 0 and 1

lowerBound

lower bound

upperBound

upper bound

Value

Samples from uniform distribution within given bounds

Author(s)

Lydia Rickett, Matthew Hartley, Richard Morris and Nick Pullen

Examples

samples <- UniformPrior(runif(1000), -5, 5)
summary(samples)

[Package babar version 1.0 Index]