int Application::go(int argc,char *argv[]) { // Process command line CommandLine cmd(argc,argv,""); if(cmd.numArgs()!=3) throw "\n\ threshold <in.schema> <input-dir> <threshold>\n\ \n\ "; String schemaFile=cmd.arg(0); String inDir=cmd.arg(1); threshold=cmd.arg(2).asDouble(); // Misc. initialization cout.precision(10); cerr.precision(10); BOOM::catchFloatOverflow(); // Load the training set schema=Schema(schemaFile); D=schema.getNumContinuous(); trainingSet.load(inDir,schema); // Apply thresholding to the data applyThreshold(); // Save the results trainingSet.save(); return 0; }