org.sazonov.fuzzy.engine
Class MembershipFunction

java.lang.Object
  extended byorg.sazonov.fuzzy.engine.MembershipFunction

public class MembershipFunction
extends java.lang.Object

Class for fuzzy membership functions.

Version:
2000 Original, v0.1, Edward S. Sazonov (esazonov@usa.com), 12/19/2003 Modifications, v0.2, Nazario Irizarry (naz-irizarry@excite.com)

Method Summary
 double fuzzify(double X)
          Fuzzify a value.
 java.lang.String getName()
          Return name of this membership function.
 double[] getRange()
          Return 4 points of the trapeziod function.
 double[] plot(double from, double to, int size)
          Return an array with discrete representation of the function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fuzzify

public double fuzzify(double X)
Fuzzify a value.

Parameters:
X - Input value.
Returns:
Result of fuzzification.

getName

public java.lang.String getName()
Return name of this membership function.

Returns:
java.lang.String

getRange

public double[] getRange()
Return 4 points of the trapeziod function.

Returns:
double[]

plot

public double[] plot(double from,
                     double to,
                     int size)
Return an array with discrete representation of the function.

Parameters:
from - Left X-axis value.
to - Right X-axis value.
size - Number of discrete steps.
Returns:
double[] Double array with size "size".