Package net.sourceforge.jFuzzyLogic.ruleAccumulationMethod

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


   * @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

Related Classes of net.sourceforge.jFuzzyLogic.ruleAccumulationMethod.RuleAccumulationMethodMax

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.