net.sourceforge.jFuzzyLogic.membership
Class MembershipFunctionTrapetzoidal
java.lang.Object
net.sourceforge.jFuzzyLogic.membership.MembershipFunction
net.sourceforge.jFuzzyLogic.membership.MembershipFunctionContinuous
net.sourceforge.jFuzzyLogic.membership.MembershipFunctionTrapetzoidal
public class MembershipFunctionTrapetzoidal
- extends MembershipFunctionContinuous
Paralelogram membership function
- Author:
- pcingola@users.sourceforge.net
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MembershipFunctionTrapetzoidal
public MembershipFunctionTrapetzoidal(double min,
double midLow,
double midHigh,
double max)
- Constructor
- Parameters:
min
- : Begining of trapetzoidalmidLow
- : Lower midium point of trapetzoidalmidHigh
- : Higher midium point of trapetzoidalmax
- : End of trapetzoidal
checkParamters
public boolean checkParamters(java.lang.StringBuffer errors)
- Specified by:
checkParamters
in class MembershipFunction
estimateUniverse
public void estimateUniverse()
- Description copied from class:
MembershipFunction
- Try to guess the universe (if not setted)
- Specified by:
estimateUniverse
in class MembershipFunction
membership
public double membership(double in)
- Description copied from class:
MembershipFunction
- Get membership function's value.
- Specified by:
membership
in class MembershipFunction
- Parameters:
in
- : Variable's 'x' value
Note: Output mu be in range [0,1]- See Also:
MembershipFunction.membership(double)
toString
public java.lang.String toString()
- Overrides:
toString
in class MembershipFunction
- See Also:
Object.toString()
toStringFCL
public java.lang.String toStringFCL()
- FCL representation
- Specified by:
toStringFCL
in class MembershipFunction