#include "PndKnnTrain.h" #include "TRandom3.h" #include #include int main(int argc, char** argv) { char name[64]; if (!(argc==6)) { std::cout << "Please specify the arguments: " << std::endl; std::cout << argv[0] << " " <<" " << std::endl; exit(-1); } TRandom3 myran(atoi(argv[5])); int totEvtNum = atoi(argv[1]); int nrOfClasses = atoi(argv[2]); int nrOfFeatures = atoi(argv[3]); std::cout << "Nr of Events = " << totEvtNum << std::endl; std::cout << "Nr of Classes = " << nrOfClasses << std::endl; std::cout << "Nr of Features = " << nrOfFeatures << std::endl; std::cout << "Output filename = " << argv[4] << std::endl; std::vector clas; std::vector nam; for (int i=0; i evt; for(int i=0; i < totEvtNum; i++) { for (int j=0; j