# NOT RUN {
#### generate R12in72 dataset
X = aux.gensamples(dname="R12in72")
#### try different bandwidth values
out1 = do.spufs(X, bandwidth=0.1)
out2 = do.spufs(X, bandwidth=1)
out3 = do.spufs(X, bandwidth=10)
#### visualize
par(mfrow=c(1,3))
plot(out1$Y[,1], out1$Y[,2], main="SPUFS::bandwidth=0.1")
plot(out2$Y[,1], out2$Y[,2], main="SPUFS::bandwidth=1")
plot(out3$Y[,1], out3$Y[,2], main="SPUFS::bandwidth=10")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab