Package org.encog.ml.prg.expvalue

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toBooleanValue()


   */
  private boolean isTrue(ProgramNode node) {
    if (node.getTemplate() == StandardExtensions.EXTENSION_CONST_SUPPORT) {
      ExpressionValue v = node.evaluate();
      if (v.isBoolean()) {
        if (v.toBooleanValue()) {
          return true;
        }
      }
    }
    return false;
View Full Code Here


   */
  private boolean isFalse(ProgramNode node) {
    if (node.getTemplate() == StandardExtensions.EXTENSION_CONST_SUPPORT) {
      ExpressionValue v = node.evaluate();
      if (v.isBoolean()) {
        if (!v.toBooleanValue()) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

      result.setData(0, v.toFloatValue());
      success = true;
      break;
    case booleanType:
      if (v.isBoolean()) {
        result.setData(0, v.toBooleanValue() ? 1.0 : 0.0);
        success = true;
      }
      break;
    case intType:
      if (v.isNumeric()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.