From: Francois Fleuret Date: Thu, 23 Aug 2012 05:27:45 +0000 (-0700) Subject: Update. X-Git-Url: https://ant.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2ff8e371d586dd9053e3de8ea918c363589716e;p=mtp.git Update. --- diff --git a/mtp.cc b/mtp.cc index 4ba31d9..455ef5a 100644 --- a/mtp.cc +++ b/mtp.cc @@ -53,33 +53,26 @@ int main(int argc, char **argv) { tracker->build_graph(); - // We repeat several times the same tracking to check how stable it - // is + // We generate synthetic detection scores at location + // nb_locations/2, with 10% false detection (FP or FN) - for(int r = 0; r < 1; r++) { - cout << "* ROUND " << r << endl; - - // We generate synthetic detection scores at location - // nb_locations/2, with 10% false detection (FP or FN) - - for(int t = 0; t < nb_time_steps; t++) { - for(int l = 0; l < nb_locations; l++) { - tracker->set_detection_score(t, l, detection_score(-1, 0.95)); - } - tracker->set_detection_score(t, nb_locations/2, detection_score(1, 0.95)); + for(int t = 0; t < nb_time_steps; t++) { + for(int l = 0; l < nb_locations; l++) { + tracker->set_detection_score(t, l, detection_score(-1, 0.95)); } + tracker->set_detection_score(t, nb_locations/2, detection_score(1, 0.95)); + } - tracker->track(); + tracker->track(); - for(int t = 0; t < tracker->nb_trajectories(); t++) { - cout << "TRAJECTORY " - << t - << " [starting " << tracker->trajectory_entrance_time(t) << "]"; - for(int u = 0; u < tracker->trajectory_duration(t); u++) { - cout << " " << tracker->trajectory_location(t, u); - } - cout << endl; + for(int t = 0; t < tracker->nb_trajectories(); t++) { + cout << "TRAJECTORY " + << t + << " [starting " << tracker->trajectory_entrance_time(t) << "]"; + for(int u = 0; u < tracker->trajectory_duration(t); u++) { + cout << " " << tracker->trajectory_location(t, u); } + cout << endl; } delete tracker;