]> mj.ucw.cz Git - leo.git/commitdiff
Labelling: Movement tuning
authorKarryanna <karry@karryanna.cz>
Wed, 13 May 2015 21:47:10 +0000 (23:47 +0200)
committerKarryanna <karry@karryanna.cz>
Wed, 13 May 2015 21:47:10 +0000 (23:47 +0200)
labeller.c

index 25fd5c81a82e40b20eea46ab32dd42e5c0318c44..de09dc95e469cf7c0aee2224972068e709d67d84 100644 (file)
@@ -100,7 +100,7 @@ int pop2_ind;
 int conf_part_size = 50;
 
 int move_min = 0;
-int move_max = 1;
+int move_max = 5;
 
 int num_requests = 0;
 int num_placements = 0;
@@ -1558,7 +1558,7 @@ void gen_coords(struct placement *p)
 
 double gen_movement(void)
 {
-  double m = (random() % 1000000) / 10000;
+  double m = (random() % 100000) / 10000;
   m = pow(m, 1.0/3) * flip(1, -1);
   if (dbg_movement)
     printf("Movement %.2f\n", m);