Analysis¶
The analysis module provides a variety of functions to analyze the mobility datasets computed by trackintel.
Triplegs¶
-
trackintel.analysis.transport_mode_identification.
predict_transport_mode
(triplegs, method='simple-coarse', **kwargs)¶ Predicts/imputes the transport mode that was likely chosen to cover the given tripleg, e.g., car, bicycle, or walk.
- Parameters
method (str, {'simple-coarse'}, default 'simple-coarse') –
The following methods are available for transport mode inference/prediction: ‘simple-coarse’ : Uses simple heuristics to predict coarse transport classes.
These include
{'slow_mobility', 'motorized_mobility', 'fast_mobility'}
. In the default classification,slow_mobility
(<15 km/h) includes transport modes such as walking or cycling,motorized_mobility
(<100 km/h) modes such as car or train, andfast_mobility
(>100 km/h) modes such as high-speed rail or airplanes. These categories are default values and can be overwritten using the keyword argument categories.