pool
Return arithmetic and logit aggregates under declared weights and alpha.
Contract
Weights are finite and nonnegative with positive total weight. Positive-weight endpoints are rejected. Alpha is explicit and is not fitted by this operation; missing panel responses require a separate coverage report.
Fields
| Field | Type | Required |
|---|---|---|
alpha | number | Yes |
forecasts | array of WeightedForecast | Yes |
op | "pool" | Yes |
This operation needs no existing question or forecast. Use --memory for a calculation-only session.
Request
Send this object on one line. It is expanded below for readability.
{
"version": 1,
"id": "example",
"command": {
"op": "pool",
"forecasts": [
{
"probability": 0.2,
"weight": 1.0
},
{
"probability": 0.8,
"weight": 1.0
}
],
"alpha": 1.0
}
}
Response
This response is generated by executing the example against the current binary. Commit timestamps, when present, are shown as <runtime UTC seconds>; the actual protocol returns integer UTC seconds.
{
"version": 1,
"id": "example",
"result": {
"alpha": 1.0,
"arithmetic": 0.5,
"contributors": 2,
"logit": 0.5
}
}
Verification
The documentation gate executes the setup and request, then checks the following result fields against independently specified expectations:
JSON pointer within result | Expected |
|---|---|
/arithmetic | 0.5 |
/logit | 0.5 |
/contributors | 2 |
Float comparisons use a 1e-12 tolerance. Request schema validation and cross-record validation still apply. See errors and recovery for failure handling.