-void Tracker::set_as_entrance(int location, int v) {
- ASSERT(location >= 0 && location < _nb_locations);
- _entrances[location] = v;
-}
-
-void Tracker::set_as_exit(int location, int v) {
- ASSERT(location >= 0 && location < _nb_locations);
- _exits[location] = v;
-}
-
-void Tracker::set_detection_score(int time, int location, scalar_t score) {
- ASSERT(time >= 0 && time < _nb_time_steps &&
- location >= 0 && location < _nb_locations);
- _detection_score[time][location] = score;
+int Tracker::late_pair_node(int t, int l) {
+ return 1 + (2 * (t + 0) + 1) * _nb_locations + l;