Mercurial Hosting > traffic-intelligence
comparison python/tests/moving.txt @ 284:f2cf16ad798f
added LCSS for trajectories
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 21 Dec 2012 18:33:36 -0500 |
parents | 13ec22bec5d4 |
children | fa64b2e3a64f |
comparison
equal
deleted
inserted
replaced
283:dbe7e53334d7 | 284:f2cf16ad798f |
---|---|
72 (1.500000,3.500000) | 72 (1.500000,3.500000) |
73 >>> t1.getTrajectoryInPolygon(np.array([[0,0],[4,0],[4,3],[0,3]])) | 73 >>> t1.getTrajectoryInPolygon(np.array([[0,0],[4,0],[4,3],[0,3]])) |
74 (0.500000,0.500000) | 74 (0.500000,0.500000) |
75 >>> t1.getTrajectoryInPolygon(np.array([[10,10],[14,10],[14,13],[10,13]])).length() | 75 >>> t1.getTrajectoryInPolygon(np.array([[10,10],[14,10],[14,13],[10,13]])).length() |
76 0 | 76 0 |
77 | |
78 >>> Trajectory.norm2LCSS(t1, t1, 0.1) | |
79 3 | |
80 >>> Trajectory.normMaxLCSS(t1, t1, 0.1) | |
81 3 |