dTrapezoidal: Trapezoidal Distribution

dTrapezoidalR Documentation

Trapezoidal Distribution

Description

Density and random generation of an Trapezoidal distribution.

Usage

dTrapezoidal(x, a, m1, m2, b, log)

rTrapezoidal(n, a, m1, m2, b)

Arguments

x

A calendar year (in BP).

a

lower (earliest) limit of the distribution (in BP).

m1

lower mode (in BP)

m2

upper mode (in BP).

b

upper (latest) limit of the distribution (in BP).

log

TRUE or 1 to return log probability. FALSE or 0 to return probability.

n

number of random draws. Currently only n = 1 is supported, but the argument exists for standardization of "r" functions.

Author(s)

Enrico Crema

Examples

a=7000
b=6700
c=4000
d=3000
x=5400
modelPlot(dTrapezoidal,a=7000,b=5000,params=c(m1=6000,m2=5300),alpha=1,col=1)


nimbleCarbon documentation built on Aug. 14, 2023, 5:08 p.m.