2.2.19. permuteData


Purpose

Permute all values in given column(s).

parent_gray

Usage

> permuteData options ASCII table(s) 

parent_gray

Options

-l / --label
column(s) to permute
-u / --unique
shuffle unique values as group
-r / --rnd [ none ]
seed of random number generator


parent_gray

Example

Suppose we have an ASCIItable
1 head
x type
1 1
2 1
3 1
4 2
5 3
6 2

Independent shuffling

With
> permuteData --label type 
we may get
1 head
x type
1 3
2 2
3 1
4 1
5 2
6 1
or any other possible permutation of 1,2, and 3. However, there will always be three times 1, two times 2, and a single 3 entry.

Group shuffling

With
> permuteData --unique --label type 
we may get
1 head
x type
1 2
2 2
3 2
4 3
5 1
6 3
or any other possible permutation of 1,2, and 3. This time, the grouping is maintained, i.e. the first three remain identical and the values at x=4 and x=6 are the same, but the actual values are shuffled.

This topic: Documentation > Processing > PostProcessing > PermuteData
Topic revision: 19 Feb 2019, MartinDiehl
This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection