average( tws TimeWeightSummary ) RETURNS DOUBLE PRECISION
A function to compute a time-weighted average from a
- For more information about time-weighted average functions, see the hyperfunctions documentation.
- For more information about statistical aggregate functions, see the hyperfunctions documentation.
|The input TimeWeightSummary from a |
|The time-weighted average computed from the |
SELECT id, average(tws) FROM ( SELECT id, time_weight('LOCF', ts, val) AS tws FROM foo GROUP BY id ) t
Found an issue on this page?Report an issue!