Package net.sf.tweety.math.func
Class SumAggregator
- java.lang.Object
-
- net.sf.tweety.math.func.SumAggregator
-
- All Implemented Interfaces:
java.io.Serializable
,AggregationFunction
,SimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>
public class SumAggregator extends java.lang.Object implements AggregationFunction
This aggregation function models the sum function.- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SumAggregator()
-
-
-
Method Detail
-
eval
public java.lang.Double eval(java.util.List<java.lang.Double> elements)
Description copied from interface:SimpleFunction
Evaluates the function for the given element.- Specified by:
eval
in interfaceAggregationFunction
- Specified by:
eval
in 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:
toString
in interfaceAggregationFunction
- Overrides:
toString
in classjava.lang.Object
-
-