|
||||||||||
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.MembershipFunctionGenericSingleton
public class MembershipFunctionGenericSingleton
Generic singleton membership function: Allows 'n' singletons (generic discrete membership function)
Field Summary | |
---|---|
(package private) double[] |
x
Singleton function values x |
(package private) double[] |
y
Singleton function values y |
Fields inherited from class net.sourceforge.jFuzzyLogic.membership.MembershipFunction |
---|
discrete, parameters, universeMax, universeMin |
Constructor Summary | |
---|---|
MembershipFunctionGenericSingleton(double[] x,
double[] y)
Constructor for generin (N-values) |
Method Summary | |
---|---|
boolean |
checkParamters(java.lang.StringBuffer errors)
|
void |
estimateUniverse()
Try to guess the universe (if not setted) |
double |
getParameter(int i)
Need to override this method (we store parameters differently in this function) |
int |
getParametersLength()
Need to override this method (we store parameters differently in this function) |
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' |
void |
setParameter(int i,
double value)
Need to override this method (we store parameters differently in this function) |
int |
size()
Number of points in this discrete function (i.e. |
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, getUniverseMax, getUniverseMin, isDiscrete, setDiscrete, setUniverseMax, setUniverseMin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
double[] x
double[] y
Constructor Detail |
---|
public MembershipFunctionGenericSingleton(double[] x, double[] y)
x
- : x[] values arrayy
- : y[] values arrayMethod Detail |
---|
public boolean checkParamters(java.lang.StringBuffer errors)
checkParamters
in class MembershipFunction
public void estimateUniverse()
MembershipFunction
estimateUniverse
in class MembershipFunction
public double getParameter(int i)
getParameter
in class MembershipFunction
public int getParametersLength()
getParametersLength
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 void setParameter(int i, double value)
setParameter
in class MembershipFunction
public int size()
size
in class MembershipFunctionDiscrete
public java.lang.String toString()
toString
in class MembershipFunction
Object.toString()
public java.lang.String toStringFCL()
toStringFCL
in class MembershipFunction
public double valueX(int index)
MembershipFunctionDiscrete
valueX
in class MembershipFunctionDiscrete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |