Skip to main content

final class atoti.OriginScope

Scope performing an aggregation at the given origin. The input of the aggregation function will be evaluated at the given levels and the aggregation function will be applied “above” these intermediate aggregates.

Example

Using this scope with atoti.agg.mean() to average quantities summed by month:
Average of monthly quantities will evaluate Quantity.SUM for each Month and average these values “above” this level:
The aggregation function can be changed again to compute the max of these averages:

levels : Set[HasIdentifier[LevelIdentifier] | LevelIdentifier]

The levels constituting the origin of the aggregation.