Class AverageAggregator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Double eval​(java.util.List<java.lang.Double> elements)
      Evaluates the function for the given element.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AverageAggregator

        public AverageAggregator()
    • 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 interface AggregationFunction
        Specified by:
        eval in interface SimpleFunction<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 interface AggregationFunction
        Overrides:
        toString in class java.lang.Object