trajminer.preprocessing
.filter_duplicate_points¶
-
trajminer.preprocessing.
filter_duplicate_points
(data, criterium, remove_first=True, inplace=True, n_jobs=1)¶ Removes duplicates of trajectory points according to the given criteria.
- data
trajminer.TrajectoryData
The dataset to be filtered.
- criteriumcallable
A callable that takes two trajectory points and decides wheter or not they are duplicates. If True, then one of the points is removed from the dataset (the first or the last point, depending on the remove_first parameter).
- remove_firstbool (default=True)
If True, then whenever duplicates are found, the first point is removed. Otherwise, the last one is removed from the dataset.
- inplacebool (default=True)
If True modifies the current object, otherwise returns a new object.
- n_jobsint (default=1)
The number of parallel jobs.
- dataset
trajminer.TrajectoryData
The filtered dataset. If inplace=True, then returns the modified current object.
- data