# NOT RUN {
## generate data of 2 types with clear difference
diff = 15
dt1 = aux.gensamples(n=123)-diff;
dt2 = aux.gensamples(n=123)+diff;
## merge the data and create a label correspondingly
Y = rbind(dt1,dt2)
label = c(rep(1,123), rep(2,123))
## compare LPP, SLPP and ESLPP
outLPP <- do.lpp(Y)
outSLPP <- do.slpp(Y, label)
outESLPP <- do.eslpp(Y, label)
## visualize
par(mfrow=c(1,3))
plot(outLPP$Y[,1], outLPP$Y[,2], main="LPP")
plot(outSLPP$Y[,1], outSLPP$Y[,2], main="SLPP")
plot(outESLPP$Y[,1], outESLPP$Y[,2], main="ESLPP")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab