public abstract class FuzzyTerm extends Term
MembershipFunction
and a left and right domain from the variableModifier and Type | Field and Description |
---|---|
static int |
TYPE_circularDefinition |
static int |
TYPE_customMonotonicShape |
static int |
TYPE_customShape |
static int |
TYPE_gaussianShape |
static int |
TYPE_leftGaussianShape |
static int |
TYPE_leftLinearShape |
static int |
TYPE_piShape |
static int |
TYPE_pointSetMonotonicShape |
static int |
TYPE_pointSetShape |
static int |
TYPE_rectangularShape |
static int |
TYPE_rightGaussianShape |
static int |
TYPE_rightLinearShape |
static int |
TYPE_singletonShape |
static int |
TYPE_sShape |
static int |
TYPE_trapezoidShape |
static int |
TYPE_triangularShape |
static int |
TYPE_zShape |
Constructor and Description |
---|
FuzzyTerm() |
Modifier and Type | Method and Description |
---|---|
abstract FuzzyTerm |
copy()
Creates a copy of the fuzzy term
|
abstract java.lang.String |
getComplement()
Gets the complement (true or false)
|
float |
getFi(float y)
Gets the x value from y
|
MembershipFunction |
getMembershipFunction()
Gets the MembershipFunction associated to this term
|
float |
getMembershipValue(float x)
Gets the membership degree by calculating the membership value of the parameter x to this term
|
abstract java.lang.String |
getName()
Gets the name of the fuzzy term
|
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
|
void |
initializeMembershipFunction(float domainLeft,
float domainRight)
This function initializes the membership function associated to this term
|
void |
setType(int type)
Sets the value for the type according to the static variables
|
public static final int TYPE_rightLinearShape
public static final int TYPE_leftLinearShape
public static final int TYPE_piShape
public static final int TYPE_triangularShape
public static final int TYPE_gaussianShape
public static final int TYPE_rightGaussianShape
public static final int TYPE_leftGaussianShape
public static final int TYPE_trapezoidShape
public static final int TYPE_singletonShape
public static final int TYPE_rectangularShape
public static final int TYPE_zShape
public static final int TYPE_sShape
public static final int TYPE_pointSetShape
public static final int TYPE_pointSetMonotonicShape
public static final int TYPE_circularDefinition
public static final int TYPE_customShape
public static final int TYPE_customMonotonicShape
public abstract java.lang.String getComplement()
public void setType(int type)
type
- the value for the type. Possible values:
- TYPE_rightLinearShape
- TYPE_leftLinearShape
-TYPE_piShape
-TYPE_triangularShape
-TYPE_gaussianShape
-TYPE_rightGaussianShape
-TYPE_leftGaussianShape
-TYPE_trapezoidShape
-TYPE_singletonShape
-TYPE_rectangularShape
-TYPE_zShape
-TYPE_sShape
-TYPE_pointSetShape
-TYPE_pointSetMonotonicShape
-TYPE_circularDefinition
-TYPE_customShape
-TYPE_customMonotonicShapepublic MembershipFunction getMembershipFunction()
public java.util.ArrayList<java.lang.Float> getXValuesDefuzzifier()
public void initializeMembershipFunction(float domainLeft, float domainRight)
domainLeft
- the left domaindomainRight
- the right domainpublic float getMembershipValue(float x)
Term
getMembershipValue
in class Term
x
- the value xpublic float getFi(float y)
y
- the y valuepublic abstract java.lang.String getName()