Skip to content

Commit

Permalink
add aggregation and clustering work
Browse files Browse the repository at this point in the history
  • Loading branch information
saadsaifse committed Jun 20, 2020
1 parent 6e8ce4b commit 6d448f1
Show file tree
Hide file tree
Showing 3 changed files with 3,112 additions and 17,154 deletions.
2 changes: 1 addition & 1 deletion envirocar/trajectories/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def split_by_gap (self, TRAJ_COLLECTION, MIN_GAP):
traj_collection = TRAJ_COLLECTION

# using moving pandas function to split trajectories as 'trips'
trips = traj_collection.split_by_observation_gap(timedelta(minutes=MIN_GAP))
trips = traj_collection.split_by_observation_gap(datetime.timedelta(minutes=MIN_GAP))
print("Extracted {} individual trips from {} continuous vehicle tracks".format(len(trips), len(traj_collection)))
return trips

Expand Down
2 changes: 1 addition & 1 deletion envirocar/trajectories/track_similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TrackSimilarity():
def __init__(self):
print("Initializing TrackSimilarity class")

def similarity(method,trajectoryA,trajectoryB):
def similarity(self, method,trajectoryA,trajectoryB):

""" Compute similarity measures using the similaritymeasures
https://pypi.org/project/similaritymeasures/
Expand Down
Loading

0 comments on commit 6d448f1

Please sign in to comment.