remove warning when cos mat contain NaN value
pca_main now calculate all 5 set of database