var#
- rbc.stdlib.statistical_functions.var(x, axis=None, correction=0.0, keepdims=False)#
Calculates the variance of the input array x.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('float64(int64[])') ... def rbc_var(X): ... return array_api.var(X) >>> rbc_var([1, 2, 3]).execute() 0.6666667