Mercurial Hosting > traffic-intelligence
comparison trafficintelligence/prediction.py @ 1029:c6cf75a2ed08
reorganization of imports
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 18 Jun 2018 22:50:59 -0400 |
parents | cc5cb04b04b0 |
children | 1c59091853e0 |
comparison
equal
deleted
inserted
replaced
1028:cc5cb04b04b0 | 1029:c6cf75a2ed08 |
---|---|
1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
2 '''Library for motion prediction methods''' | 2 '''Library for motion prediction methods''' |
3 | 3 |
4 import moving | |
5 from utils import LCSS | |
6 | |
7 import math, random | 4 import math, random |
8 from copy import copy | 5 from copy import copy |
6 | |
9 import numpy as np | 7 import numpy as np |
10 #from multiprocessing import Pool | 8 |
11 | 9 from trafficintelligence import moving |
10 from trafficintelligence.utils import LCSS | |
12 | 11 |
13 class PredictedTrajectory(object): | 12 class PredictedTrajectory(object): |
14 '''Class for predicted trajectories with lazy evaluation | 13 '''Class for predicted trajectories with lazy evaluation |
15 if the predicted position has not been already computed, compute it | 14 if the predicted position has not been already computed, compute it |
16 | 15 |