Class AverageAggregator

    • 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

        equals, 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>
        elements - some element
        the value of the element.
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface AggregationFunction
        toString in class java.lang.Object