eelbrain.Categorial
- class eelbrain.Categorial(name, values, adjacency='none')
Simple categorial dimension
- Parameters:
name (str) – Dimension name.
values (Sequence[str]) – Names of the levels.
adjacency (AdjacencyArg) –
Adjacency between elements. Can be specified as:
"none"for no connections"grid"to use adjacency invalueslist of connections based on items in
values(e.g.,values=['v1', 'v2', 'v3'], adjacency=[('v1', 'v3'), ('v2', 'v3'), ...])numpy.ndarrayof int, shape (n_edges, 2), to specify connections in terms of indices. Each row should specify one connection[i, j]withi < j. If the array’s dtype isuint32, property checks are disabled to improve efficiency.
Methods
Retrieve the dimension's adjacency graph |
|
|
Convert a dimension index to an array index |
|
Index into a subset dimension |
|
Create a dimension object that is the intersection with dim |