location
location
#
Geographic separation between two locations.
Spreads captures across places, over an Earth of mean radius.
LocationDistanceFunction
#
Bases: DistanceFunction[Location]
Great-circle distance between locations, normalized by sigma_m.
Source code in capturegraph-recipes/capturegraph_recipes/scheduling/distance/location.py
__init__(sigma_m=50.0)
#
Normalize the great-circle distance by sigma_m meters.
extract(values)
#
Each location's latitude and longitude, in radians.
pairwise(features_a, features_b)
#
The great-circle distances between two sets of locations.
Source code in capturegraph-recipes/capturegraph_recipes/scheduling/distance/location.py
location(sigma_m=50.0)
#
Create a distance function based on geographic separation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sigma_m
|
float
|
Normalization factor in meters. The returned distance is
|
50.0
|
Returns:
| Type | Description |
|---|---|
LocationDistanceFunction
|
A distance function |