X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tracker.cc;fp=tracker.cc;h=675ba2db17d2cdd6daefdc933718fe8beae2c181;hb=4d9b58034ce82094c233b61da247e11a584ec0bd;hp=d3397cf4736a9c14c5aaa1b3d8bf5335f267a1ed;hpb=852417aae1e0f64716fa49499176e300ab84d66f;p=mtp.git diff --git a/tracker.cc b/tracker.cc index d3397cf..675ba2d 100644 --- a/tracker.cc +++ b/tracker.cc @@ -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(_nb_time_steps, _nb_locations); + detection_scores = allocate_array(_nb_time_steps, _nb_locations); allowed_motion = allocate_array(_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(detection_score); + deallocate_array(detection_scores); deallocate_array(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]; } }