Package net.sf.tweety.math.func
Class FracAggrFunction
- java.lang.Object
-
- net.sf.tweety.math.func.FracAggrFunction
-
- All Implemented Interfaces:
SimpleFunction<double[],java.lang.Double>
public class FracAggrFunction extends java.lang.Object implements SimpleFunction<double[],java.lang.Double>
This is the function 1-\sum_i (1-x_i/i) used e.g in [Mu,Liu,Jin, Bell. A syntax-based approach to measuring the degree of inconsistency for belief bases. IJAR 52(7), 2011.]- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description FracAggrFunction()
-
Method Summary
Modifier and Type Method Description java.lang.Double
eval(double[] x)
Evaluates the function for the given element.
-
-
-
Method Detail
-
eval
public java.lang.Double eval(double[] x)
Description copied from interface:SimpleFunction
Evaluates the function for the given element.- Specified by:
eval
in interfaceSimpleFunction<double[],java.lang.Double>
- Parameters:
x
- some element- Returns:
- the value of the element.
-
-