testfn {COZIGAM} | R Documentation |
testfn
defines a 2-D test function.
f0
and f1
define two 1-D test functions. These test
functions may be used in simulation study of COZIGAM fits.
f_0(x)=0.2x^{11}(10(1-x))^{6}+10(10x)^{3}(1-x)^{10}
f_1(x)=sin(π x)
testfn(x,z)=0.3times 0.4π{1.2e^{-(x-0.2)^2/0.3^2 -(z-0.3)^2}+0.8e^{-(x-0.7)^2/0.3^2-(z-0.8)^2/0.4^2}}
.
Hai Liu and Kung-Sik Chan