variance
relationalai.semantics.std.aggregates
variance(*args: AggValue) -> AggregateCompute the population variance of values.
Parameters
(*argsAggValue, default:()) - Values to compute population variance over. Can include Distinct wrapper for distinct aggregation.
Returns
Aggregate- AnAggregaterepresenting the computation of the population variance. Always returnsFloat.
Examples
Compute population variance of salaries:
select(aggregates.variance(Employee.salary))Compute population variance of salaries per department:
select(Department, aggregates.variance(Employee.salary).per(Department))