dTrapezoidal | R Documentation |
Density and random generation of an Trapezoidal distribution.
dTrapezoidal(x, a, m1, m2, b, log)
rTrapezoidal(n, a, m1, m2, b)
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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.