Package org.tweetyproject.math.func
Class AverageAggregator
java.lang.Object
org.tweetyproject.math.func.AverageAggregator
- All Implemented Interfaces:
Serializable
,AggregationFunction
,SimpleFunction<List<Double>,
Double>
This aggregation function models the average function.
- Author:
- Matthias Thimm
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AverageAggregator
public AverageAggregator()Constructor
-
-
Method Details
-
eval
Description copied from interface:SimpleFunction
Evaluates the function for the given element.- Specified by:
eval
in interfaceAggregationFunction
- Specified by:
eval
in interfaceSimpleFunction<List<Double>,
Double> - Parameters:
elements
- some element- Returns:
- the value of the element.
-
toString
- Specified by:
toString
in interfaceAggregationFunction
- Overrides:
toString
in classObject
-