net.sourceforge.jFuzzyLogic.membership
Class MembershipFunctionDiscrete

java.lang.Object
  extended by net.sourceforge.jFuzzyLogic.membership.MembershipFunction
      extended by net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete
Direct Known Subclasses:
MembershipFunctionGenericSingleton, MembershipFunctionSingleton

public abstract class MembershipFunctionDiscrete
extends MembershipFunction

Base Discrete membership function

Author:
pcingola@users.sourceforge.net

Field Summary
 
Fields inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction
discrete, parameters, universeMax, universeMin
 
Constructor Summary
MembershipFunctionDiscrete()
           
 
Method Summary
 org.jfree.chart.JFreeChart chart(java.lang.String title, boolean showIt)
          Create a membership function chart
abstract  java.util.Iterator<java.lang.Double> iterator()
          Create an iterator for every discrete value (x values)
abstract  double membership(int index)
          Memebership function for point number 'index'
abstract  int size()
          Number of points in this function
abstract  double valueX(int index)
          Value 'x' for point number 'index'
 
Methods inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction
checkParamters, estimateUniverse, getName, getParameter, getParametersLength, getUniverseMax, getUniverseMin, isDiscrete, membership, setDiscrete, setParameter, setUniverseMax, setUniverseMin, toString, toStringFCL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MembershipFunctionDiscrete

public MembershipFunctionDiscrete()
Method Detail

chart

public org.jfree.chart.JFreeChart chart(java.lang.String title,
                                        boolean showIt)
Create a membership function chart

Specified by:
chart in class MembershipFunction
Parameters:
title - : Title to show (if null => show membership function name)
showIt - : If true, plot is displayed

iterator

public abstract java.util.Iterator<java.lang.Double> iterator()
Create an iterator for every discrete value (x values)

Returns:
An iterator

membership

public abstract double membership(int index)
Memebership function for point number 'index'


size

public abstract int size()
Number of points in this function


valueX

public abstract double valueX(int index)
Value 'x' for point number 'index'