net.sourceforge.jFuzzyLogic.defuzzifier
Class Defuzzifier

java.lang.Object
  extended by net.sourceforge.jFuzzyLogic.defuzzifier.Defuzzifier
Direct Known Subclasses:
DefuzzifierContinuous, DefuzzifierDiscrete

public abstract class Defuzzifier
extends java.lang.Object

Generic defuzzifier

Author:
pcingola@users.sourceforge.net

Field Summary
(package private)  boolean discrete
          Discrete defuzzifier (e.g.
 
Constructor Summary
Defuzzifier(Variable variable)
          Constructor
 
Method Summary
abstract  org.jfree.chart.JFreeChart chart(java.lang.String title, boolean showIt)
          Create a defuzzifier's chart
abstract  double defuzzify()
          Deffuzification function Note: Has to return Double.NaN if no rule infered this variable
 java.lang.String getName()
          Short name
 boolean isDiscrete()
           
abstract  void reset()
          Reset defuzzifier values, this method is invoked on every RuleSet.evaluate()
 void setDiscrete(boolean discrete)
           
 java.lang.String toString()
           
abstract  java.lang.String toStringFCL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

discrete

boolean discrete
Discrete defuzzifier (e.g. for singletons)

Constructor Detail

Defuzzifier

public Defuzzifier(Variable variable)
Constructor

Method Detail

chart

public abstract org.jfree.chart.JFreeChart chart(java.lang.String title,
                                                 boolean showIt)
Create a defuzzifier's chart

Parameters:
title - : Title to show (if null => show membership function name)
showIt - : If true, plot is displayed

defuzzify

public abstract double defuzzify()
Deffuzification function Note: Has to return Double.NaN if no rule infered this variable


getName

public java.lang.String getName()
Short name


isDiscrete

public boolean isDiscrete()

reset

public abstract void reset()
Reset defuzzifier values, this method is invoked on every RuleSet.evaluate()


setDiscrete

public void setDiscrete(boolean discrete)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringFCL

public abstract java.lang.String toStringFCL()