Module ascent::aggregators
source · Expand description
This module provides aggregators that can be used in Ascent rules.
eg: Writing the average of foo
in bar
use ascent::ascent;
use ascent::aggregators::*;
ascent!{
relation foo(i32);
relation bar(i32);
// ...
bar(m as i32) <-- agg m = mean(x) in foo(x);
}
Functions§
- returns the number of tuples
- computes the maximum of the input column
- computes the average of the input column, returning an
f64
- computes the minimum of the input column
- backs negations (eg
!foo(x)
) inascent
- computes the value at the given percentile of the input column
- computes the sum of the input column