Class AverageFunction
- java.lang.Object
-
- org.dashbuilder.dataset.engine.function.AbstractFunction
-
- org.dashbuilder.dataset.engine.function.SumFunction
-
- org.dashbuilder.dataset.engine.function.AverageFunction
-
- All Implemented Interfaces:
org.dashbuilder.dataset.group.AggregateFunction
public class AverageFunction extends SumFunction
It calculates the average value of a set of numbers.
-
-
Field Summary
-
Fields inherited from class org.dashbuilder.dataset.engine.function.AbstractFunction
precission
-
-
Constructor Summary
Constructors Constructor Description AverageFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaggregate(List values)Objectaggregate(List values, List<Integer> rows)org.dashbuilder.dataset.group.AggregateFunctionTypegetType()-
Methods inherited from class org.dashbuilder.dataset.engine.function.AbstractFunction
round
-
-
-
-
Method Detail
-
getType
public org.dashbuilder.dataset.group.AggregateFunctionType getType()
- Specified by:
getTypein interfaceorg.dashbuilder.dataset.group.AggregateFunction- Overrides:
getTypein classSumFunction
-
aggregate
public Object aggregate(List values)
- Specified by:
aggregatein interfaceorg.dashbuilder.dataset.group.AggregateFunction- Overrides:
aggregatein classSumFunction
-
-