> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/zhong-guo-ren/jian-mo-ji-chu-zhi-shi/recorders/statistical-recorders/aggregated-recorder.md).

# 聚合记录器

## 一般描述

此记录器用于聚合多个其他记录器对象。

该类提供了一种通过获取其他记录的结果来生成复杂的聚合记录器的方法。这个 *.values ()* 方法首先从提供的记录器中收集未聚合的值。然后根据每个场景对它们进行汇总并由该类返回 *.values ()* 方法。这个方法允许 *聚合记录器* 用作其他录音机 *聚合记录器* 实例。

默认情况下是一样的 *agg\_func* 两个步骤都使用函数，但可选 *录音机\_agg\_func* 可以跨场景进行不同的聚合。例如，对每个场景的记录器求和，然后取总和的平均值。[ ](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.NumpyArrayNodeCurtailmentRatioRecorder.html)[API 参考资料](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.AggregatedRecorder.html#pywr.recorders.AggregatedRecorder)

## 属性

*func*

<table><thead><tr><th width="155">姓名</th><th width="395">描述</th><th>必填项</th></tr></thead><tbody><tr><td>模型</td><td>pywr.core.model</td><td>可选</td></tr><tr><td>录音机</td><td>另一个 <em>录音机</em> 用于执行聚合的实例</td><td>可选</td></tr><tr><td>AGG_</td><td>聚合时使用的场景聚合函数_价值 被调用（默认= “均值”）</td><td>可选</td></tr><tr><td>录音机_AGG_func</td><td>录制器聚合功能可在何时使用 <em>汇总_</em>值被调用（默认值=`agg_func`)</td><td>可选</td></tr></tbody></table>

*示例即将推出...\`\`json {}*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/zhong-guo-ren/jian-mo-ji-chu-zhi-shi/recorders/statistical-recorders/aggregated-recorder.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
