unmask: the main function

Description Usage Arguments Details Value Note Author(s) References Examples

Description

The final code for the density approximant of the original data

Usage

1
unmask(ystar, noisefile, noise)

Arguments

ystar

masked data

noisefile

a file containing the information of noise

noise

noise used to mask the data y

Details

no details needed

Value

unmaskedVariable

synthetic data for y

prob

estimated mass function for y

meanOfNoise

the sample mean of noise

meanOfSquaredNoise

the sample mean of the second moment of the noise

Note

no further notes

Author(s)

Yan-Xia

References

no reference needed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

y<-rnorm(100,0,1)
ymask<-mask(y,noisefile="noise.bin", a1=min(y), b1=max(y), noise=createNoise(length(y)),
       maxorder=100, EPS=1e-06)
write(ymask$ystar, "ystar.dat")
ystar<-scan("ystar.dat")
y1<-unmask(ystar,noisefile="noise.bin", noise=noise)
print(y1$unmaskedVariable)

ElsevierSoftwareX/SOFTX-D-15-00040 documentation built on May 6, 2019, 3:25 p.m.