Skip to content

Commit 8454aef

Browse files
jason-price-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14703 derivative and integral updates
1 parent e8d47a7 commit 8454aef

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

source/includes/extracts-agg-operators.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,8 +1188,8 @@ content: |
11881188
11891189
* - :group:`$derivative`
11901190
1191-
- Returns the mathematical derivative of the numeric
1192-
:ref:`expression <aggregation-expressions>`.
1191+
- Returns the average rate of change within the specified
1192+
:ref:`window <setWindowFields-window>`.
11931193
11941194
.. versionadded:: 5.0
11951195
@@ -1221,8 +1221,7 @@ content: |
12211221
12221222
* - :group:`$integral`
12231223
1224-
- Returns the mathematical integral of the numeric
1225-
:ref:`expression <aggregation-expressions>`.
1224+
- Returns the approximation of the area under a curve.
12261225
12271226
.. versionadded:: 5.0
12281227

source/reference/operator/aggregation.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ Alphabetical Listing of Expression Operators
416416

417417
* - :group:`$derivative`
418418

419-
- Returns the mathematical derivative for the numeric
420-
:ref:`expression <aggregation-expressions>`.
419+
- Returns the average rate of change within the specified
420+
:ref:`window <setWindowFields-window>`.
421421

422422
.. versionadded:: 5.0
423423

@@ -560,8 +560,7 @@ Alphabetical Listing of Expression Operators
560560

561561
* - :group:`$integral`
562562

563-
- Returns the mathematical integral for the numeric
564-
:ref:`expression <aggregation-expressions>`.
563+
- Returns the approximation of the area under a curve.
565564

566565
.. versionadded:: 5.0
567566

source/reference/operator/aggregation/derivative.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Definition
1717

1818
.. group:: $derivative
1919

20-
Returns the mathematical derivative value, which is calculated using
21-
the:
20+
Returns the average rate of change within the specified :ref:`window
21+
<setWindowFields-window>`, which is calculated using the:
2222

2323
- First and last documents in the :pipeline:`$setWindowFields` stage
2424
:ref:`window <setWindowFields-window>`.

source/reference/operator/aggregation/integral.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Definition
1717

1818
.. group:: $integral
1919

20-
Returns an approximation for the mathematical integral value, which is
21-
calculated using the trapezoidal rule with each set of adjacent
22-
documents forming a trapezoid using the:
20+
Returns the approximation of the area under a curve, which is
21+
calculated using the trapezoidal rule where each set of adjacent
22+
documents form a trapezoid using the:
2323

2424
- :ref:`sortBy <setWindowFields-sortBy>` field values in the
25-
:pipeline:`$setWindowFields` stage for the x axis values.
25+
:pipeline:`$setWindowFields` stage for the integration intervals.
2626

2727
- :ref:`input <integral-input>` field :ref:`expression
2828
<aggregation-expressions>` result values in :group:`$integral` for the

0 commit comments

Comments
 (0)