# NOT RUN {
## generate samples from swiss roll
X <- aux.gensamples(n=200)
## test different regularization parameters
out1 <- do.crp(X,ndim=2,lambda=0.1)
out2 <- do.crp(X,ndim=2,lambda=1)
out3 <- do.crp(X,ndim=2,lambda=10)
# visualize
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,3))
plot(out1$Y, main="CRP::lambda=0.1")
plot(out2$Y, main="CRP::lambda=1")
plot(out3$Y, main="CRP::lambda=10")
par(opar)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab