From 47873546df7b75c49b3973c9b0def619b7bcec46 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 24 Aug 2012 05:15:11 +0200 Subject: [PATCH] Cosmetics. --- tracker.cc | 4 ++-- tracker.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5