Package net.sf.tweety.math.func.fuzzy
Class ProductNorm
- java.lang.Object
-
- net.sf.tweety.math.func.fuzzy.TNorm
-
- net.sf.tweety.math.func.fuzzy.ProductNorm
-
- All Implemented Interfaces:
BinaryFunction<java.lang.Double,java.lang.Double,java.lang.Double>
public class ProductNorm extends TNorm
Represents the product-norm in fuzzy logic, i.e., T(x,y)=xy- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description ProductNorm()
-
Method Summary
Modifier and Type Method Description java.lang.Double
eval(java.lang.Double val1, java.lang.Double val2)
Evaluates the function for the given elements.Term
evalTerm(Term val1, Term val2)
Gives a representation of this norm as a mathematical termTCoNorm
getDualCoNorm()
Returns the dual T-conorm of this T-norm.boolean
isNilpotent()
A T-norm is nilpotent if there are x,y>0 with t(x,y)=0
-
-
-
Method Detail
-
eval
public java.lang.Double eval(java.lang.Double val1, java.lang.Double val2)
Description copied from interface:BinaryFunction
Evaluates the function for the given elements.- Specified by:
eval
in interfaceBinaryFunction<java.lang.Double,java.lang.Double,java.lang.Double>
- Specified by:
eval
in classTNorm
- Parameters:
val1
- some elementval2
- some element- Returns:
- the value of the element.
-
getDualCoNorm
public TCoNorm getDualCoNorm()
Description copied from class:TNorm
Returns the dual T-conorm of this T-norm.- Specified by:
getDualCoNorm
in classTNorm
- Returns:
- the dual T-conorm of this T-norm.
-
evalTerm
public Term evalTerm(Term val1, Term val2)
Description copied from class:TNorm
Gives a representation of this norm as a mathematical term
-
isNilpotent
public boolean isNilpotent()
Description copied from class:TNorm
A T-norm is nilpotent if there are x,y>0 with t(x,y)=0- Specified by:
isNilpotent
in classTNorm
- Returns:
- true if the norm is nilpotent
-
-