Package net.sourceforge.jFuzzyLogic

Examples of net.sourceforge.jFuzzyLogic.FIS.evaluate()


              if(fis != null){
                  try{
                   fis.setVariable("KOLEJKA", new Float("50.0"));
                   fis.setVariable("DROGA_DOCELOWA", new Float("50.0"));
                   fis.setVariable("SWIATLO_CZERWONE", new Float("50.0"));
                   fis.evaluate();
                   fis.getVariable("KONIECZNOSC_ZMIANY");
                   return true;
                  }
                  catch (Exception e){
                      return false;
View Full Code Here


              if(fis != null){
                  try{
                   fis.setVariable("KOLEJKA", new Float("50.0"));
                   fis.setVariable("DROGA_DOCELOWA", new Float("50.0"));
                
                   fis.evaluate();
                   fis.getVariable("KONIECZNOSC_PRZEDLUZENIA");
                   return true;
                  }
                  catch (Exception e){
                      return false;
View Full Code Here

    for( double service = 0.0, food = 1; service <= 10; service += 0.1 ) {
      food = service;
      // Evaluate system using these parameters
      fis.getVariable("service").setValue(service);
      fis.getVariable("food").setValue(food);
      fis.evaluate();

      // Print result & update plot
      System.out.println(String.format("Service: %2.2f\tfood:%2.2f\t=> tip: %2.2f %%", service, food, fis.getVariable("tip").getValue()));
      jdf.repaint();
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.