Update derivative.md (#3975)

The default for `nonNegative` seems to be `false` not `true` as the documentation suggests.
pull/3929/head
Jaap Taal 2022-04-25 17:29:58 +02:00 committed by GitHub
parent 41ec990f38
commit c7cb2e5190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ _**Output data type:** Float_
```js
derivative(
unit: 1s,
nonNegative: true,
nonNegative: false,
columns: ["_value"],
timeColumn: "_time",
)
@ -40,7 +40,7 @@ The time duration used when creating the derivative.
Default is `1s`.
### nonNegative {data-type="bool"}
Indicates if the derivative is allowed to be negative. Default is `true`.
Indicates if the derivative is allowed to be negative. Default is `false`.
When `true`, if a value is less than the previous value, it is assumed the
previous value should have been a zero.