@@ -1,6 +1,10 @@
[[search-aggregations-pipeline-avg-bucket-aggregation]]
=== Avg Bucket Aggregation
+coming[2.0.0]
+
+experimental[]
A sibling pipeline aggregation which calculates the (mean) average value of a specified metric in a sibling aggregation.
The specified metric must be numeric and the sibling aggregation must be a multi-bucket aggregation.
[[search-aggregations-pipeline-bucket-script-aggregation]]
=== Bucket Script Aggregation
A parent pipeline aggregation which executes a script which can perform per bucket computations on specified metrics
in the parent multi-bucket aggregation. The specified metric must be numeric and the script must return a numeric value.
[[search-aggregations-pipeline-cumulative-sum-aggregation]]
=== Cumulative Sum Aggregation
A parent pipeline aggregation which calculates the cumulative sum of a specified metric in a parent histogram (or date_histogram)
aggregation. The specified metric must be numeric and the enclosing histogram must have `min_doc_count` set to `0` (default
for `histogram` aggregations).
[[search-aggregations-pipeline-derivative-aggregation]]
=== Derivative Aggregation
A parent pipeline aggregation which calculates the derivative of a specified metric in a parent histogram (or date_histogram)
[[search-aggregations-pipeline-max-bucket-aggregation]]
=== Max Bucket Aggregation
A sibling pipeline aggregation which identifies the bucket(s) with the maximum value of a specified metric in a sibling aggregation
and outputs both the value and the key(s) of the bucket(s). The specified metric must be numeric and the sibling aggregation must
be a multi-bucket aggregation.
[[search-aggregations-pipeline-min-bucket-aggregation]]
=== Min Bucket Aggregation
A sibling pipeline aggregation which identifies the bucket(s) with the minimum value of a specified metric in a sibling aggregation
[[search-aggregations-pipeline-movavg-aggregation]]
=== Moving Average Aggregation
Given an ordered series of data, the Moving Average aggregation will slide a window across the data and emit the average
value of that window. For example, given the data `[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`, we can calculate a simple moving
average with windows size of `5` as follows:
[[search-aggregations-pipeline-sum-bucket-aggregation]]
=== Sum Bucket Aggregation
A sibling pipeline aggregation which calculates the sum across all bucket of a specified metric in a sibling aggregation.