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