dclaw: Claw distribution

dclawR Documentation

Claw distribution

Description

Random generation, density and cumulative probability for the claw distribution.

Usage

rclaw(n)
dclaw(x)
pclaw(q)

Arguments

n

Number of draws from rclaw distribution

x

Vector of ordinates

q

Vector of quantiles

Details

The claw distribution is a normal mixture distribution, introduced in Marron & Wand (1992). Marron, J.S. & Wand, M.P. (1992). Exact Mean Integrated Squared Error. Ann. Stat., 20, 712–736.

Value

Random samples (rclaw), density (dclaw) or probability (pclaw) of the claw distribution.

Author(s)

David Herrick

Examples

# Plot the claw density on the interval [-3,3]
x <- seq(from=-3, to=3, length=500)
## Not run: plot(x, dclaw(x), type="l")

wavethresh documentation built on Sept. 11, 2024, 9:33 p.m.