|
@@ -24,8 +24,8 @@ A `derivative` aggregation looks like this in isolation:
|
|
|
|`buckets_path` |The path to the buckets we wish to find the derivative for (see <<buckets-path-syntax>> for more
|
|
|
details) |Required |
|
|
|
|`gap_policy` |The policy to apply when gaps are found in the data (see <<gap-policy>> for more
|
|
|
- details)|Optional, defaults to `skip` |
|
|
|
- |`format` |format to apply to the output value of this aggregation |Optional, defaults to `null` |
|
|
|
+ details)|Optional |`skip`
|
|
|
+ |`format` |format to apply to the output value of this aggregation |Optional | `null`
|
|
|
|===
|
|
|
|
|
|
|
|
@@ -119,7 +119,7 @@ And the following may be the response:
|
|
|
<1> No derivative for the first bucket since we need at least 2 data points to calculate the derivative
|
|
|
<2> Derivative value units are implicitly defined by the `sales` aggregation and the parent histogram so in this case the units
|
|
|
would be $/month assuming the `price` field has units of $.
|
|
|
-<3> The number of documents in the bucket are represented by the `doc_count` f
|
|
|
+<3> The number of documents in the bucket are represented by the `doc_count`
|
|
|
|
|
|
==== Second Order Derivative
|
|
|
|