50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


bda (version 1.2.7-31)

rsimpson: The simpson (claw) distribution.

Description

Compute the density, and generate a random sample of a simpson (the claw) distribution.

Usage

rsimpson(n)
 dsimpson(x)

Arguments

n
number of observations. If 'length(n) > 1', the length is taken to be the number required.
x
vector of quantiles.

See Also

smkde,histospline.

Examples

Run this code
x0 = seq(-3,3,length=100)
x = rsimpson(3000)
y = round(x)
out = histo(y)
plot(out)
lines(smkde(y),col=3)
lines(histospline(y),col=4)
lines(density(x))
lines(dsimpson(x0),col=2)

Run the code above in your browser using DataLab