cogpy.plot.hv.grid_indexing

Functions

apml_from_flat_index(ix, n_ml)

apml_from_flat_index_order(ix, *, n_ap, n_ml)

Inverse mapping for flat_index_from_apml_order.

flat_index_from_apml(ap, ml, n_ml)

flat_index_from_apml_order(ap, ml, *, n_ap, n_ml)

Convert (ap, ml) to a flat channel index under a specified convention.

flat_indices_from_selected(selected, *, ...)

Convert a set/iterable of (ap, ml) pairs to sorted row-major flat indices.

grid_shape(sig)

Return (n_ap, n_ml) for a grid-shaped signal with dims including AP and ML.

to_apml_view(sig)

Return a view with canonical grid axes ordered as ("time","AP","ML").