transitlos.scoring.accessibility_score¶
PTLOS of an origin: a stop's quality score times its mode- and quality-coupled walk access.
PTLOS(stop_score, t) = stop_score * D(t; stop_score)
stop_score comes from stop_score.stop_score, D from walk_access.walk_decay. It measures service quality from an origin,
not full accessibility to destinations; the name accessibility_score is kept for existing callers.
accessibility_score(stop_score, walk_time_minutes, mode, region='global', t0_base_minutes=None, p=None, k=None)
¶
Compute PTLOS = stop_score * D(walk_time; stop_score).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stop_score
|
float
|
The stop-level quality score, typically from
|
required |
walk_time_minutes
|
float
|
Walking time to the stop, in minutes. Must be
|
required |
mode
|
str
|
One of |
required |
region
|
str
|
Region key into |
'global'
|
t0_base_minutes
|
float | None
|
Forwarded to |
None
|
p
|
float | None
|
Forwarded to |
None
|
k
|
float | None
|
Quality-coupling constant, forwarded to |
None
|
Returns:
| Type | Description |
|---|---|
float
|
A float: the walk-discounted stop score (PTLOS). Non-negative; |
float
|
bounded above by |
float
|
slightly above 1.0 (see |
Raises:
| Type | Description |
|---|---|
ValueError
|
If stop_score or walk_time_minutes is negative. |