ecoscope.analysis.speed
#
Module Contents#
- class ecoscope.analysis.speed.SpeedDataFrame(data=None, *args, **kwargs)[source]#
Bases:
ecoscope.base.EcoDataFrame
EcoDataFrame extends geopandas.GeoDataFrame to provide customizations and allow for simpler extension.
- classmethod from_trajectory(trajectory, classification_method='equal_interval', num_classes=6, bins=None, speed_colors=None)[source]#
- Parameters
trajectory (ecoscope.base.Trajectory) –
classification_method (str) –
num_classes (int) –
bins (List) –
speed_colors (List) –
- ecoscope.analysis.speed.apply_classification(x, k, cls_method='natural_breaks', multiples=[-2, -1, 1, 2])[source]#
Function to select which classifier to apply to the speed distributed data.
- Parameters
x (np.ndarray) – The input array to be classified. Must be 1-dimensional
k (int) – Number of classes required.
cls_method (str) – Classification method
multiples (Listlike) – The multiples of the standard deviation to add/subtract from the sample mean to define the bins. defaults=
- ecoscope.analysis.speed.default_speed_colors = ['#1a9850', '#91cf60', '#d9ef8b', '#fee08b', '#fc8d59', '#d73027']#
- ecoscope.analysis.speed.classification_methods#