From 491d02c0f890132923e9d219afc2e56c2ed713c4 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 6 Jul 2020 14:12:02 -0600 Subject: [PATCH] hotfix: updated nonNegative default for derivative, resolves #1177 --- .../flux/stdlib/built-in/transformations/derivative.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/v2.0/reference/flux/stdlib/built-in/transformations/derivative.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/derivative.md index 4b3a4c54d..9c912f5bb 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/derivative.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/derivative.md @@ -26,7 +26,7 @@ _**Output data type:** Float_ ```js derivative( unit: 1s, - nonNegative: false, + nonNegative: true, columns: ["_value"], timeSrc: "_time" ) @@ -41,8 +41,9 @@ Defaults to `1s`. _**Data type:** Duration_ ### nonNegative -Indicates if the derivative is allowed to be negative. -When set to `true`, if a value is less than the previous value, it is assumed the previous value should have been a zero. +Indicates if the derivative is allowed to be negative. Default is `true`. +When `true`, if a value is less than the previous value, it is assumed the +previous value should have been a zero. _**Data type:** Boolean_