_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];
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;
}
}
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;
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);
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];
}
}