powered by
Density and random generation of an Trapezoidal distribution.
dTrapezoidal(x, a, m1, m2, b, log)rTrapezoidal(n, a, m1, m2, b)
rTrapezoidal(n, a, m1, m2, b)
A calendar year (in BP).
lower (earliest) limit of the distribution (in BP).
lower mode (in BP)
upper mode (in BP).
upper (latest) limit of the distribution (in BP).
TRUE or 1 to return log probability. FALSE or 0 to return probability.
number of random draws. Currently only n = 1 is supported, but the argument exists for standardization of "r" functions.
Enrico Crema
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)
Run the code above in your browser using DataLab