
%1) Removes spectra based on difference from the mean
%2) Removes spectra based on residuals determined by Exp-GPR regression
%3) Removes spectra based on anomalies
%4) Removes spectra based on x*b' by LR-PLS regression and difference from mean
%5) Removes spectra based on xtrans of Exp-GPR and difference from mean
%6) Removes spectra based on local outlier function

method1=100*cp21/length(idr1)
method3=100*cp23/length(idr3)
method4=100*cp24/length(idr4)
method5=100*cp25/length(idr5)
method6=100*cp26/length(idr6)

com54 = intersect(idr5,idr6); cp54=100*length(com54)/length(union(idr5,idr4));
com56 = intersect(idr5,idr6); cp56=100*length(com56)/length(union(idr5,idr6));