org.jscience.computing.ai.fuzzylogic
Class TriangularMembershipFunction

java.lang.Object
  extended by org.jscience.computing.ai.fuzzylogic.TriangularMembershipFunction
All Implemented Interfaces:
MembershipFunction

public class TriangularMembershipFunction
extends java.lang.Object
implements MembershipFunction

Triangular fuzzy membership function implementation.


Field Summary
 
Fields inherited from interface org.jscience.computing.ai.fuzzylogic.MembershipFunction
TYPE_TRIANGULAR
 
Constructor Summary
TriangularMembershipFunction(java.lang.String name, double leftPoint, double middlePoint, double rightPoint)
          Creates a new TriangularMembershipFunction object.
 
Method Summary
 double fuzzify(double input)
          DOCUMENT ME!
 double getDeFuzzificationInputValue()
          DOCUMENT ME!
 double getLeftPoint()
          DOCUMENT ME!
 double getMiddlePoint()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 double getRightPoint()
          DOCUMENT ME!
 int getType()
          DOCUMENT ME!
 double getTypicalValue()
          DOCUMENT ME!
 void setDeFuzzificationInputValue(double inputValue)
          DOCUMENT ME!
 void setLeftPoint(double mLeftPoint)
          DOCUMENT ME!
 void setMiddlePoint(double mMiddlePoint)
          DOCUMENT ME!
 void setRightPoint(double mRightPoint)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriangularMembershipFunction

public TriangularMembershipFunction(java.lang.String name,
                                    double leftPoint,
                                    double middlePoint,
                                    double rightPoint)
Creates a new TriangularMembershipFunction object.

Parameters:
name - DOCUMENT ME!
leftPoint - DOCUMENT ME!
middlePoint - DOCUMENT ME!
rightPoint - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface MembershipFunction
Returns:
DOCUMENT ME!

getLeftPoint

public double getLeftPoint()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMiddlePoint

public double getMiddlePoint()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getRightPoint

public double getRightPoint()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLeftPoint

public void setLeftPoint(double mLeftPoint)
DOCUMENT ME!

Parameters:
mLeftPoint - DOCUMENT ME!

setMiddlePoint

public void setMiddlePoint(double mMiddlePoint)
DOCUMENT ME!

Parameters:
mMiddlePoint - DOCUMENT ME!

setRightPoint

public void setRightPoint(double mRightPoint)
DOCUMENT ME!

Parameters:
mRightPoint - DOCUMENT ME!

getType

public int getType()
DOCUMENT ME!

Specified by:
getType in interface MembershipFunction
Returns:
DOCUMENT ME!

fuzzify

public double fuzzify(double input)
DOCUMENT ME!

Specified by:
fuzzify in interface MembershipFunction
Parameters:
input - DOCUMENT ME!
Returns:
DOCUMENT ME!

getTypicalValue

public double getTypicalValue()
DOCUMENT ME!

Specified by:
getTypicalValue in interface MembershipFunction
Returns:
DOCUMENT ME!

setDeFuzzificationInputValue

public void setDeFuzzificationInputValue(double inputValue)
DOCUMENT ME!

Specified by:
setDeFuzzificationInputValue in interface MembershipFunction
Parameters:
inputValue - DOCUMENT ME!

getDeFuzzificationInputValue

public double getDeFuzzificationInputValue()
DOCUMENT ME!

Specified by:
getDeFuzzificationInputValue in interface MembershipFunction
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!