Lines Matching +full:l +full:- +full:max
21 var max = parseInt(prompt('Cycles', defaultMax));
26 var jitter = 1 + 0.3 * (Math.random() - 0.5);
41 if (counter++ < max && ui.dialog == null)
73 var max = parseInt(prompt('Cycles', defaultMax));
78 var jitter = 1 + 0.3 * (Math.random() - 0.5);
99 console.log(counter + " - swapping " + passes + " children from parent A to parent B");
106 var l = Math.floor(Math.random() * (numberB + 1));
107 graph.model.add(parentB, childrenA[k], l);
109 numberA -= 1;
114 console.log(counter + " - swapping " + passes + " children from parent B to parent A");
121 var l = Math.floor(Math.random() * (numberA + 1));
122 graph.model.add(parentA, childrenB[k], l);
124 numberB -= 1;
139 if (counter++ < max && ui.dialog == null)
174 var max = parseInt(prompt('Cycles', defaultMax));
179 var jitter = 1 + 0.3 * (Math.random() - 0.5);
208 n = Math.min(n, Math.max(0, numberA - 2));
209 console.log(counter + " - removing " + n + " children from parent A");
223 n = Math.min(n, Math.max(0, numberB - 2));
224 console.log(counter + " - removing " + n + " children from parent B");
244 console.log(counter + " - inserting " + n + " children into parent A");
262 console.log(counter + " - inserting " + n + " children into parent B");
286 console.log(counter + " - moving " + n + " children inside parent A");
294 var l = Math.floor(Math.random() * numberA); // to index
296 parentA.insert(child, l);
302 console.log(counter + " - moving " + n + " children inside parent B");
310 var l = Math.floor(Math.random() * numberB); // to index
312 parentB.insert(child, l);
324 console.log(counter + " - swapping " + passes + " children from parent A to parent B");
331 var l = Math.floor(Math.random() * (numberB + 1));
332 graph.model.add(parentB, childrenA[k], l);
334 numberA -= 1;
339 console.log(counter + " - swapping " + passes + " children from parent B to parent A");
346 var l = Math.floor(Math.random() * (numberA + 1));
347 graph.model.add(parentA, childrenB[k], l);
349 numberB -= 1;
364 if (counter++ < max && ui.dialog == null)
396 var max = parseInt(prompt('Cycles', defaultMax));
401 var jitter = 1 + 0.3 * (Math.random() - 0.5);
418 console.log(counter + " - reordering in " + passes + " passes");
438 if (counter++ < max && ui.dialog == null)
466 …ui.menus.addMenuItems(menu, ['-', 'randomLabel', 'reorderChildren', 'swapChildren', 'placeChildren…