eelbrain.shuffled_index
- eelbrain.shuffled_index(n, cells=None)[source]
Return an index to shuffle a data-object
- Parameters:
n (int) – Number of cases in the index.
cells (Factor | Interaction | NestedEffect | str) – Only shuffle cases within cells.
- Returns:
index – Array of
intindexes for shuffling a data-object.- Return type:
Notes
If
cellsis not specified, this is equivalent tonumpy.random.permutation(n).