## Not run: ------------------------------------
# data=faithful[,1] # Data on n=272 eruption duration of the Old Faithful geyser.
# harray=seq(0.025,0.6,len=100)
# OSCV_array=OSCV_Gauss_dens(harray,data,0)
# dev.new()
# plot(harray,OSCV_array,lwd=3,'l',xlab="h",ylab="L_G-based OSCV",
# main="OSCV_G(h) for the data on eruption duration",cex.main=1.5,cex.lab=1.7,cex.axis=1.7)
# h_oscv=round(h_OSCV_dens(data,0),digits=4) #smoothness of the underlying density is assumed
# legend(0.04,-0.25,legend=c("n=272",paste("h_OSCV=",h_oscv)),cex=2,bty="n")
## ---------------------------------------------
Run the code above in your browser using DataLab