Package net.sf.tweety.math.func
Class EntropyFunction
- java.lang.Object
-
- net.sf.tweety.math.func.EntropyFunction
-
- All Implemented Interfaces:
SimpleFunction<java.util.Vector<java.lang.Double>,java.lang.Double>
,SimpleRealValuedFunction
- Direct Known Subclasses:
EntropyNorm
public class EntropyFunction extends java.lang.Object implements SimpleRealValuedFunction
The entropy function.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description EntropyFunction()
-
-
-
Method Detail
-
eval
public java.lang.Double eval(java.util.Vector<java.lang.Double> x)
Description copied from interface:SimpleFunction
Evaluates the function for the given element.- Specified by:
eval
in interfaceSimpleFunction<java.util.Vector<java.lang.Double>,java.lang.Double>
- Parameters:
x
- some element- Returns:
- the value of the element.
-
getTerm
public Term getTerm(java.util.Vector<Term> element)
- Specified by:
getTerm
in interfaceSimpleRealValuedFunction
-
-