Property :: average - Get average value for a collection
The function returns the average for an attribute/expression for a collection. In case of an error, the function throws an exception.
Return value: Value ( odaba::Value & )
Value of any type.
Implementation details
odaba::Value
Property  :: average ( odaba::String &sName )
The function calculates the average for the attribute path or expression passed in sExpression over all instances in the collection. When a filter condition has been set, only instances filtered by condition are considered. The result is returned as double float point value.
The expression passed must be a valid property or expression in the context of the instances to be aggregated.
- sName - Name