Catalano.Fuzzy
Class Clause
- java.lang.Object
-
- Catalano.Fuzzy.Clause
-
public class Clause extends java.lang.ObjectThis class represents a fuzzy clause, a linguistic expression of the type "Variable IS Value".
-
-
Constructor Summary
Constructors Constructor and Description Clause(LinguisticVariable variable, FuzzySet label)Initializes a new instance of theclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatEvaluate()Evaluates the fuzzy clause.FuzzySetgetLabel()Gets theof the . LinguisticVariablegetVariable()Gets theof the . java.lang.StringtoString()
-
-
-
Constructor Detail
-
Clause
public Clause(LinguisticVariable variable, FuzzySet label)
Initializes a new instance of theclass. - Parameters:
variable- Linguistic variable of the clause.label- Label of the linguistic variable, a fuzzy set used as label into the linguistic variable.
-
-
Method Detail
-
getVariable
public LinguisticVariable getVariable()
Gets theof the . - Returns:
- LinguisticVariable.
-
getLabel
public FuzzySet getLabel()
Gets theof the . - Returns:
- FuzzySet.
-
Evaluate
public float Evaluate()
Evaluates the fuzzy clause.- Returns:
- Degree of membership [0..1] of the clause.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG