# NOT RUN {
## generate swiss roll data
X <- aux.gensamples(n=200)
## compare different bandwidths
out1 <- do.dm(X,bandwidth=10)
out2 <- do.dm(X,bandwidth=100)
out3 <- do.dm(X,bandwidth=1000)
## visualize
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,3))
plot(out1$Y, main="DM::bandwidth=10")
plot(out2$Y, main="DM::bandwidth=100")
plot(out3$Y, main="DM::bandwidth=1000")
par(opar)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab