Debian Codegraph @

docs/manual/Permutation.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</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
13 </b></font></table></table>
14 <p>One of the <a href="Types_of_objects.html">types of objects</a> in Praat. A Permutation object with <i>n</i> elements consists of some ordering of the numbers 1,2...<i>n</i>.</p>
15 <h2>Interpretation</h2>
16 <p>A permutation like for example (2,3,5,4,1) is an <i>arrangement</i> of the five objects 1, 2, 3, 4, and 5. It tells us that the second object is in the first position, the third object is in the second position, the fifth object in the third position and so on.</p>
17 <p>If we combine a Permutation together with an other object, like a Strings for example, we may force a new arrangement of the strings, according to the specification in the Permutation (see <a href="Strings___Permutation__Permute_strings.html">Strings & Permutation: Permute strings</a>).</p>
18 <h2>Commands</h2>
19 <p>Creation:</p>
20 <dl>
21 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Create_Permutation___.html">Create Permutation...</a></dd>
22 </dl>
23 <p>Query:</p>
24 <dl>
25 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <b>Get number of elements</b></dd>
26 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Get_value___.html">Get value...</a></dd>
27 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Get_index___.html">Get index...</a></dd>
28 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Get_number_of_inversions.html">Get number of inversions...</a></dd>
29 </dl>
30 <p>Modification:</p>
31 <dl>
32 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Sort.html">Sort</a></dd>
33 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Swap_blocks___.html">Swap blocks...</a></dd>
34 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Swap_positions___.html">Swap positions...</a></dd>
35 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Swap_numbers___.html">Swap numbers...</a></dd>
36 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Swap_one_from_range___.html">Swap one from range...</a></dd>
37 </dl>
38 <p>Permutations:</p>
39 <dl>
40 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Permute_randomly___.html">Permute randomly...</a></dd>
41 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Permute_randomly__blocks____.html">Permute randomly (blocks)...</a></dd>
42 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Interleave___.html">Interleave...</a></dd>
43 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Rotate___.html">Rotate...</a></dd>
44 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Reverse___.html">Reverse...</a></dd>
45 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutation__Invert.html">Invert</a></dd>
46 </dl>
47 <p>Successive permutations:</p>
48 <dl>
49 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Permutations__Multiply.html">Multiply</a></dd>
50 </dl>
51 <h2>Usage</h2>
52 <dl>
53 <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="Strings___Permutation__Permute_strings.html">Strings & Permutation: Permute strings</a> to rearrange the strings in a Strings object.</dd>
54 <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="TableOfReal___Permutation__Permute_rows.html">TableOfReal & Permutation: Permute rows</a> to rearrange the rows in a TableOfReal object.</dd>
55 </dl>
56 <h3>Links to this page</h3>
57 <ul>
58 <li><a href="Index__To_Permutation___.html">Index: To Permutation...</a>
59 <li><a href="Permutation__Next.html">Permutation: Next</a>
60 <li><a href="Permutation__Permute_part___.html">Permutation: Permute part...</a>
61 <li><a href="Permutation__Previous.html">Permutation: Previous</a>
62 <li><a href="Strings__To_Permutation___.html">Strings: To Permutation...</a>
63 </ul>
64 <hr>
65 <address>
66 <p>© djmw 20250120</p>
67 </address>
68 </body>
69 </html>