|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jFuzzyLogic.membership.MembershipFunction
public abstract class MembershipFunction
Base membership function
Field Summary | |
---|---|
(package private) boolean |
discrete
|
(package private) double[] |
parameters
Function's parameters |
(package private) double |
universeMax
Universe max (range max) |
(package private) double |
universeMin
Universe min (range min) |
Constructor Summary | |
---|---|
MembershipFunction()
Constructor |
Method Summary | |
---|---|
abstract org.jfree.chart.JFreeChart |
chart(java.lang.String title,
boolean showIt)
Create a membership function chart |
abstract boolean |
checkParamters(java.lang.StringBuffer errors)
|
abstract void |
estimateUniverse()
Try to guess the universe (if not setted) |
java.lang.String |
getName()
Short name |
double |
getParameter(int i)
|
int |
getParametersLength()
|
double |
getUniverseMax()
|
double |
getUniverseMin()
|
boolean |
isDiscrete()
|
abstract double |
membership(double in)
Get membership function's value. |
void |
setDiscrete(boolean discrete)
|
void |
setParameter(int i,
double value)
|
void |
setUniverseMax(double universeMax)
|
void |
setUniverseMin(double universeMin)
|
java.lang.String |
toString()
|
abstract java.lang.String |
toStringFCL()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
boolean discrete
double[] parameters
double universeMax
double universeMin
Constructor Detail |
---|
MembershipFunction()
Method Detail |
---|
public abstract org.jfree.chart.JFreeChart chart(java.lang.String title, boolean showIt)
title
- : Title to show (if null => show membership function name)showIt
- : If true, plot is displayedpublic abstract boolean checkParamters(java.lang.StringBuffer errors)
public abstract void estimateUniverse()
public java.lang.String getName()
public double getParameter(int i)
public int getParametersLength()
public double getUniverseMax()
public double getUniverseMin()
public boolean isDiscrete()
public abstract double membership(double in)
in
- : Variable's 'x' value
Note: Output mu be in range [0,1]public void setDiscrete(boolean discrete)
public void setParameter(int i, double value)
public void setUniverseMax(double universeMax)
public void setUniverseMin(double universeMin)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String toStringFCL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |