OpenSearch/docs/reference/aggregations
Zachary Tong 6ba144ae31
Add WeightedAvg metric aggregation (#31037)
Adds a new single-value metrics aggregation that computes the weighted 
average of numeric values that are extracted from the aggregated 
documents. These values can be extracted from specific numeric
fields in the documents.

When calculating a regular average, each datapoint has an equal "weight"; it
contributes equally to the final value.  In contrast, weighted averages
scale each datapoint differently.  The amount that each datapoint contributes 
to the final value is extracted from the document, or provided by a script.

As a formula, a weighted average is the `∑(value * weight) / ∑(weight)`

A regular average can be thought of as a weighted average where every value has
an implicit weight of `1`.

Closes #15731
2018-07-23 18:33:15 -04:00
..
bucket fix typo 2018-07-13 14:59:11 -04:00
matrix Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
metrics Add WeightedAvg metric aggregation (#31037) 2018-07-23 18:33:15 -04:00
pipeline Add a MovingFunction pipeline aggregation, deprecate MovingAvg agg (#29594) 2018-05-16 10:57:00 -04:00
bucket.asciidoc Adds a new auto-interval date histogram (#28993) 2018-07-13 13:08:35 -04:00
matrix.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
metrics.asciidoc Add WeightedAvg metric aggregation (#31037) 2018-07-23 18:33:15 -04:00
misc.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
pipeline.asciidoc Add a MovingFunction pipeline aggregation, deprecate MovingAvg agg (#29594) 2018-05-16 10:57:00 -04:00