projects
/
mtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding comments.
[mtp.git]
/
tracker.cc
diff --git
a/tracker.cc
b/tracker.cc
index
d3397cf
..
675ba2d
100644
(file)
--- 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;
_nb_locations = nb_locations;
_nb_time_steps = nb_time_steps;
- detection_score = allocate_array<scalar_t>(_nb_time_steps, _nb_locations);
+ detection_score
s
= allocate_array<scalar_t>(_nb_time_steps, _nb_locations);
allowed_motion = allocate_array<int>(_nb_locations, _nb_locations);
entrances = new int[_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++) {
for(int t = 0; t < _nb_time_steps; t++) {
for(int l = 0; l < _nb_locations; l++) {
- detection_score[t][l] = 0.0;
+ detection_score
s
[t][l] = 0.0;
}
}
}
}
@@
-53,7
+53,7
@@
Tracker::Tracker(int nb_time_steps, int nb_locations) {
Tracker::~Tracker() {
delete[] _edge_lengths;
delete _graph;
Tracker::~Tracker() {
delete[] _edge_lengths;
delete _graph;
- deallocate_array<scalar_t>(detection_score);
+ deallocate_array<scalar_t>(detection_score
s
);
deallocate_array<int>(allowed_motion);
delete[] exits;
delete[] entrances;
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++) {
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_score
s
[t][l];
}
}
_graph->print_dot(os);
}
}
_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++) {
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_score
s
[t][l];
}
}
}
}