Govwerk
ballot weighted median policy
Return the full weighted-median interval minimizing absolute policy-position distance.
POST https://gov.halowerk.com/v1/ballot-weighted-median-policyInputs
| Field | Type | Required | Description |
|---|---|---|---|
| positions | array | Yes |
Show full input schema
{
"type": "object",
"properties": {
"positions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000
},
"weight": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"value",
"weight"
],
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
}
},
"required": [
"positions"
],
"additionalProperties": false
}Published input example
{
"positions": [
{
"value": 0,
"weight": 1
},
{
"value": 10,
"weight": 1
}
]
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.
More endpoints in this hub
- Govwerk0.005 USDC
ballot baldwin elimination rounds
POSThttps://gov.halowerk.com/v1/ballot-baldwin-elimination-roundsReturn simultaneous minimum-Borda elimination rounds under the declared Baldwin tie rule.
- Govwerk0.005 USDC
ballot borda position scores
POSThttps://gov.halowerk.com/v1/ballot-borda-position-scoresReturn weighted n-minus-one Borda position scores and all tied leaders.
- Govwerk0.005 USDC
ballot condorcet pairwise table
POSThttps://gov.halowerk.com/v1/ballot-condorcet-pairwise-tableReturn weighted pairwise preference counts and strict or weak Condorcet winners.