rbitri: Random generation of bitriangular distributed values.

Description Usage Arguments Details Value Author(s) Examples

View source: R/bitriangular.R

Description

Random generation of bitriangular distributed values.

Usage

1
rbitri(n, a = log2(1.2), b = log2(4), m = log2(2))

Arguments

n

number of observations.

a

location of point, ... Default a = log2(1.2).

b

location of point, ... Default b = log2(4).

m

location of the midpoint of the triangle. Default m = log2(2).

Details

For more details see M. Langaas et al. JRSS B 2005.

Value

Generates random deviates.

Author(s)

Maarten van Iterson

Examples

1
2
hist(rbitri(100), freq=FALSE)
curve(dbitri, add=TRUE)

Example output

Loading required package: qvalue
Loading required package: lattice
Loading required package: limma

SSPA documentation built on Nov. 8, 2020, 5:50 p.m.