Package net.sf.tweety.math.func
Class AverageAggregator
- java.lang.Object
-
- net.sf.tweety.math.func.AverageAggregator
-
- All Implemented Interfaces:
java.io.Serializable,AggregationFunction,SimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>
public class AverageAggregator extends java.lang.Object implements AggregationFunction
This aggregation function models the average function.- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AverageAggregator()
-
-
-
Method Detail
-
eval
public java.lang.Double eval(java.util.List<java.lang.Double> elements)
Description copied from interface:SimpleFunctionEvaluates the function for the given element.- Specified by:
evalin interfaceAggregationFunction- Specified by:
evalin interfaceSimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>- Parameters:
elements- some element- Returns:
- the value of the element.
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceAggregationFunction- Overrides:
toStringin classjava.lang.Object
-
-