API Reference

Exhaustive API Index

Complete Python type annotations, parameter constraints, return dataclasses, and raised exceptions.

Module moveq_core.equity

compute_gini(values, weights) -> float

Calculates the population-weighted Gini coefficient via numerical integration of the Lorenz curve.

compute_palma_ratio(values, weights) -> float

Calculates the Palma ratio (top 10% mean service / bottom 40% mean service) with continuous boundary splitting.

compute_concentration_index(service, rank, population, *, rank_direction) -> float

Wagstaff Concentration Index. rank_direction is required. Positive is advantage-concentrated; negative is disadvantage-concentrated. Tied ranks share a group-midpoint fractional rank.

Module moveq_core.score

compute_score(terms, weights, *, labels=None, n_areas=None, context=None) -> ScoreResult

Evaluates a weighted 0-100 composite score, dropping missing terms (None) and renormalizing active design weights.

Module moveq_catalogue.catalogue

Catalogue(base_sections: list[str], country: str)

Cross-country questionnaire harmonization registry.