This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
access:track_statistics_definitions [2015/11/02 23:25] mjallison |
access:track_statistics_definitions [2016/12/22 18:37] (current) mjallison |
||
---|---|---|---|
Line 3: | Line 3: | ||
* Travel: The total length of the track from the first point to the last point. | * Travel: The total length of the track from the first point to the last point. | ||
* Cycle_Count: (Track_Line/Track intersections) / 2 | * Cycle_Count: (Track_Line/Track intersections) / 2 | ||
- | * Cycle_Time: Time from first cycle xing to last xing | + | * Cycle_Time: Same as Moving_Time |
* Avg_Seconds_Per_Cycle: Cycle_Time / Cycle_count | * Avg_Seconds_Per_Cycle: Cycle_Time / Cycle_count | ||
* Moving_Time: The time during which a vehicle moves during the entire day. | * Moving_Time: The time during which a vehicle moves during the entire day. | ||
Line 31: | Line 31: | ||
// | // | ||
- | // Points are assumed to be order in time such that time(pt[0]) is time(pt[1]) | + | // Points are assumed to be order in time such that time(pt[0]) < time(pt[1]) |
// | // | ||
int movingTime = 0; | int movingTime = 0; | ||
Line 48: | Line 48: | ||
float tmpspeed = (prevDelta > 0) ? distance/prevDelta : 0; | float tmpspeed = (prevDelta > 0) ? distance/prevDelta : 0; | ||
- | if( (prevDelta <= idleTime) && (tmpspeed >= idleFPS) ) | + | if( (prevDelta < idleTime) && (tmpspeed > idleFPS) ) |
{ | { | ||
movingTime += prevTimeDelta; | movingTime += prevTimeDelta; |