Package org.tweetyproject.math.func
Class MaxAggregator
- java.lang.Object
-
- org.tweetyproject.math.func.MaxAggregator
-
- All Implemented Interfaces:
java.io.Serializable,AggregationFunction,SimpleFunction<java.util.List<java.lang.Double>,java.lang.Double>
public class MaxAggregator extends java.lang.Object implements AggregationFunction
This aggregation function models the maximum function.- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxAggregator()
-
-
-
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
-
-