get_rpi
Calculate RPI (Rating Percentage Index) for teams in a flight based on completed games. Returns ranked list with WP, OWP, OOWP components.
Instructions
Compute the RPI ranking for every team in a flight.
RPI = 0.25·WP + 0.50·OWP + 0.25·OOWP, computed from the flight's completed games. Returns each team's WP/OWP/OOWP components and final RPI, ranked. Early in a season, sparse results make RPI noisy.
Args: event_id: Numeric event ID (e.g. 3933). flight_id: Flight ID from get_event_overview. tie_weight: Tie value in the winning-percentage element — 1/3 (the 2024 convention, default) or 0.5 (pre-2024).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | Yes | ||
| flight_id | Yes | ||
| tie_weight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |