trajminer.preprocessing
.filter_trajectory_length¶
-
trajminer.preprocessing.
filter_trajectory_length
(data, min_length, max_length, inplace=True, n_jobs=1)¶ Removes trajectories by length criteria.
- data
trajminer.TrajectoryData
The dataset to be filtered.
- min_lengthint
The minimum length required to keep trajectories in the dataset. If None, then no minimum length is enforced.
- max_lengthint
The maximum length required to keep trajectories in the dataset. If None, then no maximum length is enforced.
- 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