Package net.sourceforge.jFuzzyLogic.defuzzifier

Examples of net.sourceforge.jFuzzyLogic.defuzzifier.DefuzzifierCenterOfGravity


    //---
    // Defuzzification method
    //---
    Defuzzifier defuzzifier;
    if( defuzzificationMethodType.equalsIgnoreCase("COG") ) defuzzifier = new DefuzzifierCenterOfGravity(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("COGS") ) defuzzifier = new DefuzzifierCenterOfGravitySingletons(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("COGF") ) defuzzifier = new DefuzzifierCenterOfGravityFunctions(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("COA") ) defuzzifier = new DefuzzifierCenterOfArea(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("LM") ) defuzzifier = new DefuzzifierLeftMostMax(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("RM") ) defuzzifier = new DefuzzifierRightMostMax(variable);
View Full Code Here


    tip.add(ltCheap);
    tip.add(ltAverage);
    tip.add(ltGenerous);

    tip.setDefuzzifier(new DefuzzifierCenterOfGravity(tip));

    //    RULEBLOCK No1
    //       ACCU : MAX;
    //       AND : MIN;
    //       ACT : MIN;
View Full Code Here

   * @param variable
   * @return
   */
  Defuzzifier createDefuzzifier(String defuzzificationMethodType, Variable variable) {
    Defuzzifier defuzzifier;
    if( defuzzificationMethodType.equalsIgnoreCase("COG") ) defuzzifier = new DefuzzifierCenterOfGravity(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("COGS") ) defuzzifier = new DefuzzifierCenterOfGravitySingletons(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("COGF") ) defuzzifier = new DefuzzifierCenterOfGravityFunctions(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("COA") ) defuzzifier = new DefuzzifierCenterOfArea(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("LM") ) defuzzifier = new DefuzzifierLeftMostMax(variable);
    else if( defuzzificationMethodType.equalsIgnoreCase("RM") ) defuzzifier = new DefuzzifierRightMostMax(variable);
View Full Code Here

    v.add(t2);

    Variable v_out = new Variable("out", 0.0, 20.0);
    MembershipFunction triangularOut = new MembershipFunctionTriangular(new Value(2.0), new Value(10.0), new Value(13.0));
    v_out.setDefaultValue(2.0);
    v_out.setDefuzzifier(new DefuzzifierCenterOfGravity(v_out));

    fb.setVariable("a", v);
    fb.setVariable("out", v_out);

    v_out.add(t1);
View Full Code Here

TOP

Related Classes of net.sourceforge.jFuzzyLogic.defuzzifier.DefuzzifierCenterOfGravity

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.