Calculators and Rule Checks
seat apportion representation gap
Representation gap measures the largest percentage-point difference between population and assigned seat shares. Use it when an agent needs quantifying disproportionality under a supplied allocation.
POST https://rechen.halowerk.com/v1/seat-apportion-representation-gapInputs
| Field | Type | Required | Description |
|---|---|---|---|
| weights | array | Yes | |
| seats | integer | Yes | |
| allocation | array | Yes |
Show full input schema
{
"type": "object",
"properties": {
"weights": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"maxItems": 40,
"minItems": 2
},
"seats": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"allocation": {
"type": "array",
"items": {
"type": "integer"
},
"maxItems": 40,
"minItems": 0
}
},
"required": [
"weights",
"seats",
"allocation"
],
"additionalProperties": false
}Published input example
{
"weights": [
643503,
1363582,
1379089,
1098163
],
"seats": 11,
"allocation": [
2,
3,
3,
3
]
}Result & documentation
Show published result schema
{
"type": "object",
"required": [
"measured_at",
"source",
"data",
"limitations"
],
"properties": {
"measured_at": {
"type": "string"
},
"source": {
"type": "object",
"required": [
"reference",
"retrieved_at"
],
"properties": {
"reference": {
"type": "string"
},
"retrieved_at": {
"type": "string"
}
}
},
"data": {
"type": "object",
"properties": {
"gap_points": {
"type": "array",
"items": {
"type": "number"
}
},
"largest_absolute_gap": {
"type": "number"
},
"half_absolute_sum": {
"type": "number"
}
},
"required": [
"gap_points",
"largest_absolute_gap",
"half_absolute_sum"
]
},
"limitations": {
"type": "string"
}
}
}Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.
More endpoints in this hub
- Calculators and Rule Checks0.003 USDC
ai act risk class
POSThttps://rechen.halowerk.com/v1/ai-act-risk-classEvaluates the caller’s description against Regulation (EU) 2024/1689 as amended by Regulation (EU) 2026/1744: prohibited practices of Art. 5(1)(a)-(h) and the new points (ba) and (bb) (from 2 December 2026); high-risk under Art. 6(1) (safet
- Calculators and Rule Checks0.002 USDC
airport calm moist poor visibility
POSThttps://rechen.halowerk.com/v1/airport-calm-moist-poor-visibilityCalm moist weather counts hours with wind at most 5 mph, visibility under three miles and dew-point spread at most 3 F. Use it when an agent needs historical hourly observations at a covered US airport.
- Calculators and Rule Checks0.002 USDC
airport cloud wind cooling events
POSThttps://rechen.halowerk.com/v1/airport-cloud-wind-cooling-eventsCloud and wind transitions count hours where cloudiness increased, wind strengthened and air temperature fell together. Use it when an agent needs historical hourly observations at a covered US airport.