Class AverageFunction

  • All Implemented Interfaces:
    org.dashbuilder.dataset.group.AggregateFunction

    public class AverageFunction
    extends SumFunction
    It calculates the average value of a set of numbers.
    • Constructor Detail

      • AverageFunction

        public AverageFunction()
    • Method Detail

      • getType

        public org.dashbuilder.dataset.group.AggregateFunctionType getType()
        Specified by:
        getType in interface org.dashbuilder.dataset.group.AggregateFunction
        Overrides:
        getType in class SumFunction
      • aggregate

        public Object aggregate​(List values)
        Specified by:
        aggregate in interface org.dashbuilder.dataset.group.AggregateFunction
        Overrides:
        aggregate in class SumFunction
      • aggregate

        public Object aggregate​(List values,
                                List<Integer> rows)
        Specified by:
        aggregate in interface org.dashbuilder.dataset.group.AggregateFunction
        Overrides:
        aggregate in class SumFunction