|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jFuzzyLogic.membership.MembershipFunction net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete net.sourceforge.jFuzzyLogic.membership.MembershipFunctionSingleton
public class MembershipFunctionSingleton
Singleton membership function
Field Summary |
---|
Fields inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction |
---|
discrete, parameters, universeMax, universeMin |
Constructor Summary | |
---|---|
MembershipFunctionSingleton(double valueX,
double valueY)
Constructor for a simple (only one value) singleton |
Method Summary | |
---|---|
boolean |
checkParamters(java.lang.StringBuffer errors)
|
void |
estimateUniverse()
Try to guess the universe (if not setted) |
java.util.Iterator<java.lang.Double> |
iterator()
Create an iterator for every discrete value (x values) |
double |
membership(double in)
Get membership function's value. |
double |
membership(int index)
Memebership function for point number 'index' |
int |
size()
Number of points in this function |
java.lang.String |
toString()
|
java.lang.String |
toStringFCL()
FCL representation |
double |
valueX(int index)
Value 'x' for point number 'index' |
Methods inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunctionDiscrete |
---|
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 |
---|
public MembershipFunctionSingleton(double valueX, double valueY)
valueX
- valueY
- Method Detail |
---|
public boolean checkParamters(java.lang.StringBuffer errors)
checkParamters
in class MembershipFunction
public void estimateUniverse()
MembershipFunction
estimateUniverse
in class MembershipFunction
public java.util.Iterator<java.lang.Double> iterator()
MembershipFunctionDiscrete
iterator
in class MembershipFunctionDiscrete
MembershipFunctionDiscrete.iterator()
public double membership(double in)
MembershipFunction
membership
in class MembershipFunction
in
- : Variable's 'x' value
Note: Output mu be in range [0,1]MembershipFunction.membership(double)
public double membership(int index)
MembershipFunctionDiscrete
membership
in class MembershipFunctionDiscrete
MembershipFunctionDiscrete.membership(int)
public int size()
MembershipFunctionDiscrete
size
in class MembershipFunctionDiscrete
public java.lang.String toString()
toString
in class MembershipFunction
Object.toString()
public double valueX(int index)
MembershipFunctionDiscrete
valueX
in class MembershipFunctionDiscrete
public java.lang.String toStringFCL()
toStringFCL
in class MembershipFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |