public class RightLinearMembershipFunction extends MembershipFunction implements Monotonical
Constructor and Description |
---|
RightLinearMembershipFunction()
Default constructor
|
RightLinearMembershipFunction(Parameter p)
Constructor with Parameter instance with the parameters of the function
|
RightLinearMembershipFunction(TwoParamType p,
float domainLeft,
float domainRight)
Constructor with TwoParamType with a and b values
|
Modifier and Type | Method and Description |
---|---|
float |
getFi(float y)
This function returns the inverse value.
|
float |
getMembershipDegree(float x)
Get membership degree value.
|
java.util.ArrayList<java.lang.Float> |
getXValuesDefuzzifier()
This function returns an array with values [x1, x2, x3, ...] which represents points in the x domain of the function needed by defuzzifer
|
java.lang.String |
toString() |
getDomainLeft, getDomainRight, getName, getParameter, setDomainLeft, setDomainRight, setParameter
public RightLinearMembershipFunction()
public RightLinearMembershipFunction(Parameter p)
p
- parameter -> a and b. Parameters a and b must satisfy a<=bpublic RightLinearMembershipFunction(TwoParamType p, float domainLeft, float domainRight)
p
- Parameters a and b must satisfy a<=bdomainLeft
- left domaindomainRight
- right domainpublic float getMembershipDegree(float x)
MembershipFunction
getMembershipDegree
in class MembershipFunction
x
- : Variable's 'x' valuepublic java.lang.String toString()
toString
in class MembershipFunction
public float getFi(float y)
Monotonical
getFi
in interface Monotonical
public java.util.ArrayList<java.lang.Float> getXValuesDefuzzifier()
MembershipFunction
getXValuesDefuzzifier
in class MembershipFunction