Package org.encog.app.analyst.csv.normalize

Examples of org.encog.app.analyst.csv.normalize.AnalystNormalizeCSV


    final CSVFormat inputFormat = getScript()
        .determineInputFormat(sourceID);
    final CSVFormat outputFormat = getScript().determineOutputFormat();

    // prepare to normalize
    final AnalystNormalizeCSV norm = new AnalystNormalizeCSV();
    norm.setScript(getScript());
    getAnalyst().setCurrentQuantTask(norm);
    norm.setReport(new AnalystReportBridge(getAnalyst()));

    final boolean headers = getScript().expectInputHeaders(sourceID);
    norm.analyze(sourceFile, headers, inputFormat, getAnalyst());
    norm.setOutputFormat(outputFormat);
    norm.setProduceOutputHeaders(true);
    norm.normalize(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return norm.shouldStop();
  }
View Full Code Here


    // get formats
    final CSVFormat format = getScript().determineFormat();

    // prepare to normalize
    final AnalystNormalizeCSV norm = new AnalystNormalizeCSV();
    norm.setScript(getScript());
    getAnalyst().setCurrentQuantTask(norm);
    norm.setReport(new AnalystReportBridge(getAnalyst()));

    final boolean headers = getScript().expectInputHeaders(sourceID);
    norm.analyze(sourceFile, headers, format, getAnalyst());
    norm.setProduceOutputHeaders(true);
    norm.normalize(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return norm.shouldStop();
  }
View Full Code Here

TOP

Related Classes of org.encog.app.analyst.csv.normalize.AnalystNormalizeCSV

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.