dellipse: The semi-ellipse

View source: R/functions.R

dellipseR Documentation

The semi-ellipse

Description

Probability Density Function of the semi-ellipse \loadmathjax

Usage

dellipse(x, min, duration)

Arguments

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.

Details

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

Value

The pdf at the provided x values.

Examples

	x <- seq(1:500)
	y <- dellipse(x, min = 100, duration=200)
	plot(x,y,type='l')
	

AdrianTimpson/ADMUR documentation built on July 2, 2024, 8:39 p.m.