denoisehetero(x, f, pred, neigh, int, clo, keep, rule = "median")
denoise
, heterovar
x1<-runif(256)
y1<-make.signal2("doppler",x=x1)
n1<-rnorm(256,0,.1)
z1<-y1+n1
#
est1<-denoisehetero(x1,z1,AdaptNeigh,1,TRUE,TRUE,2)
sum(abs(y1-est1$fhat$coeff))
#
#the error between the true signal and the denoised version.
Run the code above in your browser using DataLab