Learn R Programming

wavethresh (version 4.7.3)

dclaw: Claw distribution

Description

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

Usage

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

Value

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

Arguments

n

Number of draws from rclaw distribution

x

Vector of ordinates

q

Vector of quantiles

Author

David Herrick

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.

Examples

Run this code
# Plot the claw density on the interval [-3,3]
x <- seq(from=-3, to=3, length=500)
if (FALSE) plot(x, dclaw(x), type="l")

Run the code above in your browser using DataLab