dellipse | R Documentation |
Probability Density Function of the semi-ellipse \loadmathjax
dellipse(x, min, duration)
x |
Vector of values at which to calculate the pdf. |
min , duration |
min is the lower limit of the distribution. Therefore min plus duration is the upper limit of the distribution. Must be finite. |
The pdf of the semi-ellipse (the top half of an ellipse) is defined as: \mjseqnf(x) = \frac\sqrtr^2 - \Bigl(x - \fracmin + max2 \Bigr)^2\frac12\pi r^2 where \mjseqnr = \fracmax - min2
The pdf at the provided x values.
x <- seq(1:500)
y <- dellipse(x, min = 100, duration=200)
plot(x,y,type='l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.