Skip to main content

aggregate

Function aggregate 

Source
pub fn aggregate(
    samples: &[KpiSample],
    period: KpiPeriod,
    from: NaiveDate,
    to_inclusive: NaiveDate,
) -> Vec<KpiAggregate>
Expand description

The aggregates of samples per period (spec 3.5 §7.11), one for every period from the one holding from through the one holding to_inclusive, in order, empty periods included; samples of other KPIs than the first sample’s, and samples outside those periods, are left out.