smlmlp.aggregate_ratio module
- smlmlp.aggregate_ratio(col, /, pnt, ch, *, x_channels=None, y_channels=None, cuda=False, parallel=False)[source]
Calculate channel ratios for each point.
- Parameters:
col (array-like) – Channel values to aggregate.
pnt (array-like) – Point identifiers.
ch (array-like) – Channel identifiers.
x_channels (array-like or None, optional) – Channels summed into the returned x and y ratios.
y_channels (array-like or None, optional) – Channels summed into the returned x and y ratios.
cuda (bool, optional) – Execution options accepted by all analysis functions.
parallel (bool, optional) – Execution options accepted by all analysis functions.
- Returns:
ratio_x, ratio_y (ndarray) – Summed values per point, with NaN for incomplete channel sets.
info (dict) – Empty diagnostics dictionary.