averef#

averef(data, weights=None, sphere=None, *, return_parameters=False)#

Average-reference channel-major data and optionally transform ICA weights.

Set return_parameters=True to also receive transformed weights, sphere, and the removed channel mean. This explicit switch replaces MATLAB’s output-count-dependent return behavior.

Parameters:
  • data (Any)

  • weights (Any | None)

  • sphere (Any | None)

  • return_parameters (bool)

Return type:

ndarray | tuple[ndarray, ndarray | None, ndarray | None, ndarray]