Package org.encog.app.analyst.script.process

Examples of org.encog.app.analyst.script.process.ProcessField


      if (df.getName().equalsIgnoreCase("time")) {
        command.append("cint(field(\"");
        command.append(df.getName());
        command.append("\",0");
        command.append("))");
        fields.add(new ProcessField(df.getName(), command.toString()));
      } else {
        command.append("cfloat(field(\"");
        command.append(df.getName());
        command.append("\",0");
        command.append("))");
        fields.add(new ProcessField(df.getName(), command.toString()));
      }
    }

    StringBuilder command = new StringBuilder();

    switch (prediction) {
    case fieldmax:
      command.append("fieldmax(\"");
      command.append(predictField);
      command.append("\",");
      command.append(-forwardWindow);
      command.append(",");
      command.append(-1);
      command.append(")");
      break;
    case fieldmaxpip:
      command.append("fieldmaxpip(\"");
      command.append(predictField);
      command.append("\",");
      command.append(-forwardWindow);
      command.append(",");
      command.append(-1);
      command.append(")");
    }

    fields.add(new ProcessField("prediction", command.toString()));

  }
View Full Code Here


    for (final String line : section.getLines()) {
      if (!first) {
        final List<String> cols = EncogFileSection.splitColumns(line);
        final String name = cols.get(0);
        final String command = cols.get(1);
        final ProcessField pf = new ProcessField(name, command);
        fields.add(pf);
      } else {
        first = false;
      }
    }
View Full Code Here

TOP

Related Classes of org.encog.app.analyst.script.process.ProcessField

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.