Package net.sourceforge.jFuzzyLogic.rule

Examples of net.sourceforge.jFuzzyLogic.rule.LinguisticTerm.toStringFcl()


        // Add fuzzyfiers
        fuzzifiers.append("FUZZIFY " + var.getName() + "\n");
        for( Iterator<String> itlt = var.iteratorLinguisticTermNamesSorted(); itlt.hasNext(); ) {
          String ltName = itlt.next();
          LinguisticTerm linguisticTerm = var.getLinguisticTerm(ltName);
          fuzzifiers.append("\t" + linguisticTerm.toStringFcl() + "\n");
        }
        fuzzifiers.append("END_FUZZIFY\n\n");

      } else {
        // Add output variables
View Full Code Here


        // Add defuzzyfiers
        defuzzifiers.append("DEFUZZIFY " + var.getName() + "\n");
        for( Iterator<String> itlt = var.iteratorLinguisticTermNamesSorted(); itlt.hasNext(); ) {
          String ltName = itlt.next();
          LinguisticTerm linguisticTerm = var.getLinguisticTerm(ltName);
          defuzzifiers.append("\t" + linguisticTerm.toStringFcl() + "\n");
        }
        defuzzifiers.append("\t" + var.getDefuzzifier().toStringFcl() + "\n");
        defuzzifiers.append("\tDEFAULT := " + (Double.isNaN(var.getDefaultValue()) ? "NC" : Double.toString(var.getDefaultValue())) + ";\n");
        var.estimateUniverse();
        defuzzifiers.append("\tRANGE := (" + var.getUniverseMin() + " .. " + var.getUniverseMax() + ");\n");
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.