Catalano.Fuzzy
Class Rule
- java.lang.Object
-
- Catalano.Fuzzy.Rule
-
public class Rule extends java.lang.ObjectThis class represents a Fuzzy Rule, a linguistic expression representing some behavioral aspect of a Fuzzy Inference System.
-
-
Constructor Summary
Constructors Constructor and Description Rule(Database fuzzyDatabase, java.lang.String name, java.lang.String rule)Initializes a new instance of theclass using as CoNorm the and as Norm the . Rule(Database fuzzyDatabase, java.lang.String name, java.lang.String rule, INorm normOperator, ICoNorm coNormOperator)Initializes a new instance of theclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatEvaluateFiringStrength()Evaluates the firing strength of the Rule, the degree of confidence that the consequent of this Rule must be executed.java.lang.StringgetName()The name of the fuzzy rule.ClausegetOutput()The fuzzy Clause that represents the consequent of the Rule.java.lang.StringGetRPNExpression()Converts the RPN fuzzy expression into a string representation.voidsetName(java.lang.String name)The name of the fuzzy rule.
-
-
-
Constructor Detail
-
Rule
public Rule(Database fuzzyDatabase, java.lang.String name, java.lang.String rule, INorm normOperator, ICoNorm coNormOperator)
Initializes a new instance of theclass. - Parameters:
fuzzyDatabase- A fuzzycontainig the linguistic variables see ) that will be used in the Rule. name- Name of this. rule- A string representing the. It must be a "IF..THEN" statement. For a more detailed description see class. normOperator- A class that implements ainterface to evaluate the AND operations of the Rule. coNormOperator- A class that implements ainterface to evaluate the OR operations of the Rule.
-
Rule
public Rule(Database fuzzyDatabase, java.lang.String name, java.lang.String rule)
Initializes a new instance of theclass using as CoNorm the and as Norm the . - Parameters:
fuzzyDatabase- A fuzzycontainig the linguistic variables see ) that will be used in the Rule. name- Name of this. rule- A string representing the. It must be a "IF..THEN" statement. For a more detailed description see class.
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the fuzzy rule.- Returns:
- Name.
-
setName
public void setName(java.lang.String name)
The name of the fuzzy rule.- Parameters:
name- Name.
-
getOutput
public Clause getOutput()
The fuzzy Clause that represents the consequent of the Rule.- Returns:
- Clause.
- See Also:
Clause.,Rule.
-
GetRPNExpression
public java.lang.String GetRPNExpression()
Converts the RPN fuzzy expression into a string representation.- Returns:
- String representation of the RPN fuzzy expression.
-
EvaluateFiringStrength
public float EvaluateFiringStrength()
Evaluates the firing strength of the Rule, the degree of confidence that the consequent of this Rule must be executed.- Returns:
- The firing strength [0..1] of the Rule.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG