- 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++) {
+ // tracker->detection_score[t][nb_locations/2] = detection_score(1, score_noise, flip_noise);
+ // }
+
+ // Puts two target with the typical local minimum
+
+ int la, lb;
+ scalar_t sa, sb;
+ for(int t = 0; t < nb_time_steps; t++) {
+ // Target a moves from location 0 to the middle and comes back,
+ // and is strongly detected on the first half, target b moves from
+ // location nb_locations-1 to the middle and comes back, and is
+ // strongly detected on the second half
+ if(t < nb_time_steps/2) {
+ la = t;
+ lb = nb_locations - 1 - t;
+ sa = detection_score(10.0, -1.0, score_noise, flip_noise);
+ sb = detection_score( 1.0, -1.0, score_noise, flip_noise);
+ } else {
+ la = nb_time_steps - 1 - t;
+ lb = t - nb_time_steps + nb_locations;
+ sa = detection_score( 1.0, -1.0, score_noise, flip_noise);
+ sb = detection_score(10.0, -1.0, score_noise, flip_noise);