Learn R Programming

wavethresh (version 4.6.1)

dclaw: 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

Value

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

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)
plot(x, dclaw(x), type="l")

Run the code above in your browser using DataLab