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