mobilipy.segmentation
Functions
|
Finds clusters of waypoints for legs |
- mobilipy.segmentation.segment(prepared_df, radius=0.025, min_samples=50, time_gap=850, use_multiprocessing=True) pandas.core.frame.DataFrame
Finds clusters of waypoints for legs
- Parameters
df (pandas.DataFrame) – Waypoints DataFrame to be processed
radius (float) – Eps for DBSCAN
min_samples (int) – Minimum number of samples to be considered for
time_gap (float) – Max time gap threshold for detected clusters
- Returns
pandas.DataFrame – DataFrame with the segment starts and ends