> 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/francais/bases-de-la-modelisation/recorders/statistical-recorders/aggregated-recorder.md).

# Enregistreur agrégé

## Description générale

Cet enregistreur est utilisé pour agréger plusieurs autres objets Recorder.

La classe fournit une méthode pour produire un enregistreur agrégé complexe en prenant les résultats d'autres enregistrements. Le *.valeurs ()* La méthode collecte d'abord des valeurs non agrégées à partir des enregistreurs fournis. Elles sont ensuite agrégées par scénario et renvoyées par ces classes. *.valeurs ()* méthode. Cette méthode permet *Enregistreur agrégé* à utiliser comme enregistreur dans d'autres *Enregistreur agrégé* instances.

Par défaut, le même *agg \_func* une fonction est utilisée pour les deux étapes, mais une fonction facultative *enregistreur \_agg \_func* peut effectuer une agrégation différente selon les scénarios. Par exemple, additionner les enregistreurs par scénario, puis prendre une moyenne des totaux.[ ](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.NumpyArrayNodeCurtailmentRatioRecorder.html)[API Référence](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.AggregatedRecorder.html#pywr.recorders.AggregatedRecorder)

## Attributs

*func Fonction d'*

<table><thead><tr><th width="155">Nom</th><th width="395">Descriptif</th><th>Nécessaire</th></tr></thead><tbody><tr><td>modèle</td><td>Modèle PYWR.Core.Model</td><td>Facultatif</td></tr><tr><td>enregistreurs</td><td>L'autre <em>Enregistreur</em> instances sur lesquelles effectuer l'agrégation</td><td>Facultatif</td></tr><tr><td>agg_</td><td>agrégation de scénarios à utiliser lors de l'agrégation_valeur est appelé (par défaut = » mean »)</td><td>Facultatif</td></tr><tr><td>enregistreur_agg_func</td><td>Fonction d'agrégation d'enregistreurs à utiliser lorsque <em>agrégés_la valeur</em> est appelée (par défaut=`agg)_func`)</td><td>Facultatif</td></tr></tbody></table>

*Exempleà venir...\`\`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/francais/bases-de-la-modelisation/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.
