updated covariance example
parent
1c065ab1a6
commit
30ba2eef27
|
|
@ -39,6 +39,7 @@ _**Data type:** String_
|
|||
## Examples
|
||||
```js
|
||||
from(bucket: "example-bucket")
|
||||
|> range(start:-5m)
|
||||
|> range(start:-5m)
|
||||
|> map(fn: (r) => ({r with x: r._value, y: r._value * r._value / 2}))
|
||||
|> covariance(columns: ["x", "y"])
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue