STDDEV_POP() OVER ...
All functions > WINDOW FUNCTION > STDDEV_POP() OVER ...
Returns the population standard deviation over the window frame.
Syntax
STDDEV_POP(expr) OVER ([PARTITION BY expr [, ...]] [ORDER BY sort_item [, ...]] [ROWS|RANGE|GROUPS frame])
Notes
- Computes population standard deviation (divides by N) over a window of rows
- NULL values are ignored in the calculation
See also
Examples
FeatureQL
SELECT
f1 := ZIP(ARRAY[1,2,3] AS id, ARRAY[5.0E0,5.0E0,5.0E0] AS x).TRANSFORM(SELECT STDDEV_POP(x) OVER (ORDER BY id ASC)).UNWRAP() -- Population std dev of identical values is zero
;Result
| f1 ARRAY |
|---|
| [0.00, 0.00, 0.00] |