API reference

If you’re just getting started, have a look at access.access (or the Tutorials!) to see the basic structure of the package and its applications.

Accessibility Class

access.access(demand_df, demand_value, supply_df)

Spatial Access Class

access.access.weighted_catchment([name, …])

Calculate the catchment area (buffer) aggregate access score.

access.access.fca_ratio([name, demand_cost, …])

Calculate the floating catchment area (buffer) ratio access score.

access.access.two_stage_fca([name, cost, …])

Calculate the two-stage floating catchment area access score.

access.access.enhanced_two_stage_fca([name, …])

Calculate the enhanced two-stage floating catchment area access score.

access.access.three_stage_fca([name, cost, …])

Calculate the three-stage floating catchment area access score.

access.access.raam([name, cost, …])

Calculate the rational agent access model.

access.access.score(col_dict[, name])

Weighted aggregate of multiple already-calculated, normalized access components.

access.access.create_euclidean_distance([…])

Calculate the Euclidean distance from demand to supply locations.

access.access.create_euclidean_distance_neighbors([…])

Calculate the Euclidean distance among demand locations.

access.access.append_user_cost(new_cost_df, …)

Create a user cost, from demand to supply locations.

access.access.append_user_cost_neighbors(…)

Create a user cost, from supply locations to other supply locations.

Helper Functions

access.weights.step_fn(step_dict)

Create a step function from a dictionary.

access.weights.gravity(scale, alpha[, min_dist])

Create a gravity function from a scale \(s\) and \(\alpha\) parameters as well as an optional minimum distance \(x_\text{min}\).

access.weights.gaussian(sigma)

Create a gaussian weight function, for a specified width, \(\sigma\).

Internal Access Functions

The access class uses lower-level functions for its internal calculations. In most cases, we do not expect users to call these directly. However, users seeking to understand these calculations and their inputs can still consult the Listing of Internal Access Functions.