From c7cb2e5190d533c49db6b5082ac9df8aed60e76d Mon Sep 17 00:00:00 2001 From: Jaap Taal Date: Mon, 25 Apr 2022 17:29:58 +0200 Subject: [PATCH] Update derivative.md (#3975) The default for `nonNegative` seems to be `false` not `true` as the documentation suggests. --- content/flux/v0.x/stdlib/universe/derivative.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/flux/v0.x/stdlib/universe/derivative.md b/content/flux/v0.x/stdlib/universe/derivative.md index 3baca4dcb..22b248fce 100644 --- a/content/flux/v0.x/stdlib/universe/derivative.md +++ b/content/flux/v0.x/stdlib/universe/derivative.md @@ -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.