- // 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);
- }
-
- if(la > nb_locations/2 - 1) la = nb_locations/2 - 1;
- if(lb < nb_locations/2 + 1) lb = nb_locations/2 + 1;
-
- tracker->detection_score[t][la] = sa;
- tracker->detection_score[t][lb] = sb;
- }