average multiplied
by the elapsed time.
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| tws | TimeWeightSummary | - | ✔ | The input TimeWeightSummary from a time_weight() call |
| unit | TEXT | second | The unit of time to express the integral in. Can be microsecond, millisecond, second, minute, hour, or any alias for those units supported by Postgres |
Returns
| Column | Type | Description |
|---|---|---|
| integral | DOUBLE PRECISION | The time-weighted integral |