rlunif: The log-uniform distribution

View source: R/prior_specification.R

rlunifR Documentation

The log-uniform distribution

Description

Return a random sample from the log-uniform distribution.

Usage

rlunif(n, min = 1, max = 2)

Arguments

n

Number of observations.

min, max

Limits of the distribution (must be strictly positive). These will be the limits of the samples returned.

Value

A vector of length n containing random draws from the log-uniform distribution.

Draws independent samples from Uniform(log(min), log(max)) and exponentiates.

Examples

rlunif(1, 0.01, 0.2)

antarctic-humpback-2019-assessment/HumpbackSIR documentation built on Nov. 6, 2023, 6:07 p.m.