Permutation

One of the types of objects in Praat. A Permutation object with n elements consists of some ordering of the numbers 1,2...n.

Interpretation

A permutation like for example (2,3,5,4,1) is an arrangement 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.

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 Strings & Permutation: Permute strings).

Commands

Creation:

Create Permutation...

Query:

Get number of elements
Get value...
Get index...

Modification:

Sort
Swap blocks...
Swap positions...
Swap numbers...
Swap one from range...

Permutations:

Permute randomly...
Permute randomly (blocks)...
Interleave...
Rotate...
Reverse...
Invert

Successive permutations:

Multiply

Usage

Strings & Permutation: Permute strings to rearrange the strings in a Strings object.
TableOfReal & Permutation: Permute rows to rearrange the rows in a TableOfReal object.

Links to this page


© djmw 20050721