Package expressions

Examples of expressions.FuzzyConstantExpression



      if (!ruleMap.containsKey(l)) // We'll add IW(l,0) = 1, which is equivalent to l = 0 as IW(l,0) = 1-l
      {
        literalList.add(new FuzzyLiteral(1.0, 1.0, new FuzzyBinaryExpression(
            l.convertToFuzzyExpression(), new FuzzyConstantExpression(0), new IW())));
      }


    }
View Full Code Here


    }
    FuzzyExpression ant = new FuzzyMultiExpression(antList, new SM());
    // 2.b Create consequent: max(B1,...,Bn) for l <- Bi in R^{+}(P,L)
    ArrayList<FuzzyExpression> consList = new ArrayList<FuzzyExpression>();
    // Add a zero for elements that never occur in the head of a rule
    consList.add(new FuzzyConstantExpression(0.0));
    for (GroundRule r : rMinus) {
      consList.add(r.convertBodyExpression());
    }
    FuzzyExpression cons = new FuzzyMultiExpression(consList, new SM());
    return new FuzzyClause(
View Full Code Here

      } else {
        // If RMINUS is empty, we have to have 0.0, i.e. none of the
        // rules in RPLUS offer real support and thus all literals in
        // the loop should be zero.
        consExp = new FuzzyConstantExpression(0.0);


      }
      return new FuzzyLiteral(1.0, 1.0, new FuzzyBinaryExpression(antecExp, consExp, new IW()));


    } else {
      // If there is no loop, this method shouldn't have been called, so
      // we return an easy literal.
      return new FuzzyLiteral(0.0, 0.0, new FuzzyConstantExpression(0.0));


    }

  }
View Full Code Here

TOP

Related Classes of expressions.FuzzyConstantExpression

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.