The samples were passed over a nanoarray and the resulting electrical signals were analyzed with discriminant factor analysis as well as by a K-fold cross-validation method , to test the accuracy of the model .