Aggregators are the tools to connect between DGGS Calculator and DGGS Selectors, in a form to generating summaries (or statistics) based on the given values and selected cells.
the DGGS Language SDK provide several built in aggregate functions:
Here is an example how to use the built in functions:
The DGGS provide opportunities for optimize the run time for those aggregate functions. we can leverage the DGGS Structure and run those aggregate functions on low resolutions first and increase the resolution over time. lower resolution have fewer cells, however, larger amount of error. Moreover, we can leverage the DGGS.Calculator.getRange(selector) to give a bound on error introduced into the aggregated results.
Therefore, those aggregate functions provide additional async interface for estimating the results with a given error bound:
async estimation is applyed simulansly for both DGGS Calculator evaluations and DGSS Selector evaluation.
|