Debian Codegraph @

docs/manual/Permutation__Swap_one_from_range___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Permutation: Swap one from range...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Permutation: Swap one from range...
13 </b></font></table></table>
14 <p>An element at an index, randomly chosen from a range, will be permuted with an element at a prescribed index position.</p>
15 <h2>Settings</h2>
16 <dl>
17 <dt><b>Index range</b>
18 <dd>defines the range of indices from which one will be randomly chosen.</dd>
19 <dt><b>Index</b>
20 <dd>defines the special index position whose element will be interchanged with the one chosen from the range.</dd>
21 <dt><b>Forbid same</b>
22 <dd>when <i>on</i>, forbids the randomly chosen position and the index position to be the same. This switch is only of relevance when the chosen range happens to overlap the index position.</dd>
23 </dl>
24 <h2>Examples</h2>
25 <p>With <b>Index range</b> = [0,0], <b>Index</b> = 3, <b>Forbid same</b> is <i>off</i> and (1,2,3,4,5) as the starting permutation, the outcome might be one of the five permutations (3,2,1,4,5), (1,3,2,4,5), (1,2,3,4,5), (1,2,4,3,5), (1,2,5,4,3). If <b>Forbid same</b> were chosen as <i>on</i>, the (1,2,3,4,5) permutation is forbidden and the outcome could only be one of the four remaining permutations.</p>
26 <h3>Links to this page</h3>
27 <ul>
28 <li><a href="Permutation.html">Permutation</a>
29 </ul>
30 <hr>
31 <address>
32 <p>© djmw 20110105</p>
33 </address>
34 </body>
35 </html>