Package net.sf.tweety.math.func
Interface AggregationFunction
-
- All Superinterfaces:
java.io.Serializable
,SimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>
- All Known Implementing Classes:
AverageAggregator
,MaxAggregator
,MinAggregator
,ProductAggregator
,SumAggregator
public interface AggregationFunction extends SimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>, java.io.Serializable
This class aggregates a list of doubles to a single double.- Author:
- Matthias Thimm
-
-
Method Detail
-
eval
java.lang.Double eval(java.util.List<java.lang.Double> x)
Description copied from interface:SimpleFunction
Evaluates the function for the given element.- Specified by:
eval
in interfaceSimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>
- Parameters:
x
- some element- Returns:
- the value of the element.
-
toString
java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-