Examples of RuleAccumulationMethodMax


Examples of net.sourceforge.jFuzzyLogic.ruleAccumulationMethod.RuleAccumulationMethodMax

    //       ACCU : MAX;
    //       AND : MIN;
    //       ACT : MIN;
    RuleBlock ruleBlock = new RuleBlock(functionBlock);
    ruleBlock.setName("No1");
    ruleBlock.setRuleAccumulationMethod(new RuleAccumulationMethodMax());
    ruleBlock.setRuleActivationMethod(new RuleActivationMethodMin());

    //       RULE 1 : IF service IS poor OR food is rancid THEN tip IS cheap;
    Rule rule1 = new Rule("Rule1", ruleBlock);
    rule1.addAntecedent(service, "poor", false);
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.ruleAccumulationMethod.RuleAccumulationMethodMax

   * @param ruleAccumulationMethodType
   * @return
   */
  RuleAccumulationMethod createAccumulationMethod(String ruleAccumulationMethodType) {
    RuleAccumulationMethod ruleAccumulationMethod;
    if( ruleAccumulationMethodType.equalsIgnoreCase("MAX") ) ruleAccumulationMethod = new RuleAccumulationMethodMax();
    else if( ruleAccumulationMethodType.equalsIgnoreCase("BSUM") ) ruleAccumulationMethod = new RuleAccumulationMethodBoundedSum();
    else if( ruleAccumulationMethodType.equalsIgnoreCase("NSUM") ) ruleAccumulationMethod = new RuleAccumulationMethodNormedSum();
    else if( ruleAccumulationMethodType.equalsIgnoreCase("PROBOR") ) ruleAccumulationMethod = new RuleAccumulationMethodProbOr();
    else if( ruleAccumulationMethodType.equalsIgnoreCase("SUM") ) ruleAccumulationMethod = new RuleAccumulationMethodSum();
    else throw new RuntimeException("Unknown/Unimplemented Rule accumulation method '" + ruleAccumulationMethodType + "'");
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.