Package net.sourceforge.jFuzzyLogic.defuzzifier

Examples of net.sourceforge.jFuzzyLogic.defuzzifier.DefuzzifierCenterOfGravityFunctions


    // 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);
    else if( defuzzificationMethodType.equalsIgnoreCase("MM") ) defuzzifier = new DefuzzifierMeanMax(variable);
    else throw new RuntimeException("Unknown/Unimplemented Rule defuzzification method '" + defuzzificationMethodType + "'");
View Full Code Here


   */
  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);
    else if( defuzzificationMethodType.equalsIgnoreCase("MM") ) defuzzifier = new DefuzzifierMeanMax(variable);
    else throw new RuntimeException("Unknown/Unimplemented Rule defuzzification method '" + defuzzificationMethodType + "'");
View Full Code Here

TOP

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

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.