net.sourceforge.jFuzzyLogic.membership
Class MembershipFunctionGaussian

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

public class MembershipFunctionGaussian
extends MembershipFunctionContinuous

Gaussian membership function

Author:
pcingola@users.sourceforge.net

Field Summary
 
Fields inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction
discrete, parameters, universeMax, universeMin
 
Constructor Summary
MembershipFunctionGaussian(double mean, double stdev)
          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

MembershipFunctionGaussian

public MembershipFunctionGaussian(double mean,
                                  double stdev)
Constructor

Parameters:
mean - : Mean
stdev - : Standardt deviation
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