fun.fg1 {CVThresh}R Documentation

fg1 function

Description

This function generates fg1 function values for n equally spaced points in [0,1].

Usage

fun.fg1(n=1024)

Arguments

n the number of data

Details

A smooth function fg1 is introduced by Fan and Gijbels (1995) and is useful test function evaluating a wavelet shrinkage method.

Value

fg1 function values f(i/n), i=1,...,n and its variability ||f|| = sum_{i=1}^n (f_i - mena(f))^2 / (n-1) where mena(f) = sum_{i=1}^n f_i / n.

References

Fan, J. and Gijbels, I. (1995) Data-driven bandwidth selection in local polynomial fitting: Variable bandwidth and spatial adaptation. Journal of the Royal Statistical Society Ser. B 57, 371–394.

See Also

fun.dopp, fun.heav, fun.poly.

Examples

testfg1 <- fun.fg1(1024)
plot(testfg1$x, testfg1$meanf, xlab="", ylab="", 
     main="Plot of fg1 function", type="l")

[Package CVThresh version 1.0.0 Index]