The docs specify how the average is calculated, if a weight is specified. This post gives you an example of a manual reduction vs. the internal one.
weight