moved derivative and difference out of aggregate functions, resolves #1059
parent
cb0309e738
commit
b42c464166
|
@ -16,7 +16,7 @@ menu:
|
|||
name: Rate
|
||||
v2.0/tags: [query, rate]
|
||||
related:
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/derivative/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/derivative/
|
||||
- /v2.0/reference/flux/stdlib/experimental/aggregate/rate/
|
||||
list_query_example: rate_of_change
|
||||
---
|
||||
|
|
|
@ -7,8 +7,10 @@ aliases:
|
|||
menu:
|
||||
v2_0_ref:
|
||||
name: derivative
|
||||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
parent: built-in-transformations
|
||||
weight: 402
|
||||
aliases:
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/derivative
|
||||
related:
|
||||
- /v2.0/query-data/flux/rate/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#derivative, InfluxQL – DERIVATIVE()
|
||||
|
@ -18,7 +20,7 @@ The `derivative()` function computes the rate of change per [`unit`](#unit) of t
|
|||
It assumes rows are ordered by the `_time` column.
|
||||
The output table schema is the same as the input table.
|
||||
|
||||
_**Function type:** Aggregate_
|
||||
_**Function type:** Transformation_
|
||||
_**Output data type:** Float_
|
||||
|
||||
```js
|
||||
|
@ -30,6 +32,9 @@ derivative(
|
|||
)
|
||||
```
|
||||
|
||||
#### Output tables
|
||||
For each input table with `n` rows, `derivative()` outputs a table with `n - 1` rows.
|
||||
|
||||
## Parameters
|
||||
|
||||
### unit
|
|
@ -7,8 +7,10 @@ aliases:
|
|||
menu:
|
||||
v2_0_ref:
|
||||
name: difference
|
||||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
parent: built-in-transformations
|
||||
weight: 402
|
||||
aliases:
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/difference
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#difference, InfluxQL – DIFFERENCE()
|
||||
---
|
||||
|
@ -16,7 +18,7 @@ related:
|
|||
The `difference()` function computes the difference between subsequent records.
|
||||
The user-specified columns of numeric type are subtracted while others are kept intact.
|
||||
|
||||
_**Function type:** Aggregate_
|
||||
_**Function type:** Transformation_
|
||||
_**Output data type:** Float_
|
||||
|
||||
```js
|
||||
|
@ -27,6 +29,9 @@ difference(
|
|||
)
|
||||
```
|
||||
|
||||
#### Output tables
|
||||
For each input table with `n` rows, `difference()` outputs a table with `n - 1` rows.
|
||||
|
||||
## Parameters
|
||||
|
||||
### nonNegative
|
Loading…
Reference in New Issue