Adding comments.
[mtp.git] / tracker.cc
index d3397cf..675ba2d 100644 (file)
@@ -26,7 +26,7 @@ Tracker::Tracker(int nb_time_steps, int nb_locations) {
   _nb_locations = nb_locations;
   _nb_time_steps = nb_time_steps;
 
-  detection_score = allocate_array<scalar_t>(_nb_time_steps, _nb_locations);
+  detection_scores = allocate_array<scalar_t>(_nb_time_steps, _nb_locations);
   allowed_motion = allocate_array<int>(_nb_locations, _nb_locations);
 
   entrances = new int[_nb_locations];
@@ -42,7 +42,7 @@ Tracker::Tracker(int nb_time_steps, int nb_locations) {
 
   for(int t = 0; t < _nb_time_steps; t++) {
     for(int l = 0; l < _nb_locations; l++) {
-      detection_score[t][l] = 0.0;
+      detection_scores[t][l] = 0.0;
     }
   }
 
@@ -53,7 +53,7 @@ Tracker::Tracker(int nb_time_steps, int nb_locations) {
 Tracker::~Tracker() {
   delete[] _edge_lengths;
   delete _graph;
-  deallocate_array<scalar_t>(detection_score);
+  deallocate_array<scalar_t>(detection_scores);
   deallocate_array<int>(allowed_motion);
   delete[] exits;
   delete[] entrances;
@@ -173,7 +173,7 @@ void Tracker::print_graph_dot(ostream *os) {
   int e = 0;
   for(int t = 0; t < _nb_time_steps; t++) {
     for(int l = 0; l < _nb_locations; l++) {
-      _edge_lengths[e++] = - detection_score[t][l];
+      _edge_lengths[e++] = - detection_scores[t][l];
     }
   }
   _graph->print_dot(os);
@@ -183,7 +183,7 @@ void Tracker::track() {
   int e = 0;
   for(int t = 0; t < _nb_time_steps; t++) {
     for(int l = 0; l < _nb_locations; l++) {
-      _edge_lengths[e++] = - detection_score[t][l];
+      _edge_lengths[e++] = - detection_scores[t][l];
     }
   }