From: Francois Fleuret Date: Fri, 24 Aug 2012 03:15:11 +0000 (+0200) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=47873546df7b75c49b3973c9b0def619b7bcec46;p=mtp.git Cosmetics. --- diff --git a/tracker.cc b/tracker.cc index 5a0647b..eafce84 100644 --- a/tracker.cc +++ b/tracker.cc @@ -211,6 +211,6 @@ int Tracker::trajectory_duration(int k) { return (_graph->paths[k]->nb_nodes - 2) / 2; } -int Tracker::trajectory_location(int k, int time) { - return (_graph->paths[k]->nodes[2 * time + 1] - 1) % _nb_locations; +int Tracker::trajectory_location(int k, int time_from_entry) { + return (_graph->paths[k]->nodes[2 * time_from_entry + 1] - 1) % _nb_locations; } diff --git a/tracker.h b/tracker.h index aa1518e..1c851e0 100644 --- a/tracker.h +++ b/tracker.h @@ -57,7 +57,7 @@ public: scalar_t trajectory_score(int k); int trajectory_entrance_time(int k); int trajectory_duration(int k); - int trajectory_location(int k, int time); + int trajectory_location(int k, int time_from_entry); }; #endif