net.sourceforge.jFuzzyLogic.membership
Class MembershipFunctionGenBell

java.lang.Object
  extended by net.sourceforge.jFuzzyLogic.membership.MembershipFunction
      extended by net.sourceforge.jFuzzyLogic.membership.MembershipFunctionContinuous
          extended by net.sourceforge.jFuzzyLogic.membership.MembershipFunctionGenBell

public class MembershipFunctionGenBell
extends MembershipFunctionContinuous

Generalized bell membership function

Author:
pcingola@users.sourceforge.net

Field Summary
 
Fields inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction
discrete, parameters, universeMax, universeMin
 
Constructor Summary
MembershipFunctionGenBell(double a, double b, double mean)
          Constructor
 
Method Summary
 boolean checkParamters(java.lang.StringBuffer errors)
           
 void estimateUniverse()
          Try to guess the universe (if not setted)
 double membership(double in)
          Get membership function's value.
 java.lang.String toString()
           
 java.lang.String toStringFCL()
          FCL representation
 
Methods inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunctionContinuous
chart
 
Methods inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction
getName, getParameter, getParametersLength, getUniverseMax, getUniverseMin, isDiscrete, setDiscrete, setParameter, setUniverseMax, setUniverseMin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MembershipFunctionGenBell

public MembershipFunctionGenBell(double a,
                                 double b,
                                 double mean)
Constructor

Parameters:
a - : 'a' param
b - : 'b' param
mean - : Mean
Method Detail

checkParamters

public boolean checkParamters(java.lang.StringBuffer errors)
Specified by:
checkParamters in class MembershipFunction

estimateUniverse

public void estimateUniverse()
Description copied from class: MembershipFunction
Try to guess the universe (if not setted)

Specified by:
estimateUniverse in class MembershipFunction

membership

public double membership(double in)
Description copied from class: MembershipFunction
Get membership function's value.

Specified by:
membership in class MembershipFunction
Parameters:
in - : Variable's 'x' value Note: Output mu be in range [0,1]
See Also:
MembershipFunction.membership(double)

toString

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

toStringFCL

public java.lang.String toStringFCL()
FCL representation

Specified by:
toStringFCL in class MembershipFunction