public class TriangularModifier extends Modifier
Constructor and Description |
---|
TriangularModifier(java.lang.String name,
double a,
double b,
double c) |
Modifier and Type | Method and Description |
---|---|
double |
getA()
Gets parameter a.
|
double |
getB()
Gets parameter b.
|
double |
getC()
Gets parameter c.
|
double |
getMembershipDegree(double x)
Gets the image in [0,1] of a real number to the modifier.
|
java.lang.String |
getName()
Gets the definition of the modifier.
|
Concept |
modify(Concept c)
Modifies a fuzzy concept
|
void |
solveAssertion(Individual ind,
Concept con,
Degree lowerLimit,
KnowledgeBase kb)
Solves an assertion of the form (individual, concept, lower degree) with respect to a fuzzy KB.
|
setName, solveComplementAssertion, toString
public TriangularModifier(java.lang.String name, double a, double b, double c) throws FuzzyOntologyException
FuzzyOntologyException
public double getA()
public double getB()
public double getC()
public Concept modify(Concept c)
Modifier
public java.lang.String getName()
Modifier
public double getMembershipDegree(double x)
Modifier
getMembershipDegree
in class Modifier
x
- A real number in the range of values of the modifierfunction.public void solveAssertion(Individual ind, Concept con, Degree lowerLimit, KnowledgeBase kb)
Modifier
solveAssertion
in class Modifier
ind
- An individual.con
- A concept.lowerLimit
- Lower bound for the degree.kb
- A fuzzy KB.