ezmsg.sigproc.affinetransform#
Functions
- affine_transform(weights, axis=None, right_multiply=True)[source]#
Perform affine transformations on streaming data.
- Parameters:
weights (ndarray | str | Path) – An array of weights or a path to a file with weights compatible with np.loadtxt.
axis (str | None) – The name of the axis to apply the transformation to. Defaults to the leading (0th) axis in the array.
right_multiply (bool) – Set False to transpose the weights before applying.
- Returns:
- Return type:
- common_rereference(mode='mean', axis=None, include_current=True)[source]#
Perform common average referencing (CAR) on streaming data.
- Parameters:
- Returns:
- Return type:
Classes
- class AffineTransform(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformerUnit[AffineTransformSettings,AxisArray,AxisArray,AffineTransformTransformer]- Parameters:
settings (Settings | None)
- SETTINGS#
alias of
AffineTransformSettings
- class AffineTransformSettings(weights, axis=None, right_multiply=True)[source]#
Bases:
SettingsSettings for
AffineTransform. Seeaffine_transformfor argument details.- weights: ndarray | str | Path#
An array of weights or a path to a file with weights compatible with np.loadtxt.
- class AffineTransformTransformer(*args, **kwargs)[source]#
Bases:
BaseStatefulTransformer[AffineTransformSettings,AxisArray,AxisArray,AffineTransformState]
- class CommonRereference(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformerUnit[CommonRereferenceSettings,AxisArray,AxisArray,CommonRereferenceTransformer]- Parameters:
settings (Settings | None)
- SETTINGS#
alias of
CommonRereferenceSettings
- class CommonRereferenceSettings(mode='mean', axis=None, include_current=True)[source]#
Bases:
SettingsSettings for
CommonRereference- __init__(mode='mean', axis=None, include_current=True)#
- class CommonRereferenceTransformer(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformer[CommonRereferenceSettings,AxisArray,AxisArray]- Parameters:
settings (SettingsType)
- class AffineTransformSettings(weights, axis=None, right_multiply=True)[source]#
Bases:
SettingsSettings for
AffineTransform. Seeaffine_transformfor argument details.- weights: ndarray | str | Path#
An array of weights or a path to a file with weights compatible with np.loadtxt.
- class AffineTransformTransformer(*args, **kwargs)[source]#
Bases:
BaseStatefulTransformer[AffineTransformSettings,AxisArray,AxisArray,AffineTransformState]
- class AffineTransform(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformerUnit[AffineTransformSettings,AxisArray,AxisArray,AffineTransformTransformer]- Parameters:
settings (Settings | None)
- SETTINGS#
alias of
AffineTransformSettings
- affine_transform(weights, axis=None, right_multiply=True)[source]#
Perform affine transformations on streaming data.
- Parameters:
weights (ndarray | str | Path) – An array of weights or a path to a file with weights compatible with np.loadtxt.
axis (str | None) – The name of the axis to apply the transformation to. Defaults to the leading (0th) axis in the array.
right_multiply (bool) – Set False to transpose the weights before applying.
- Returns:
- Return type:
- class CommonRereferenceSettings(mode='mean', axis=None, include_current=True)[source]#
Bases:
SettingsSettings for
CommonRereference- __init__(mode='mean', axis=None, include_current=True)#
- class CommonRereferenceTransformer(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformer[CommonRereferenceSettings,AxisArray,AxisArray]- Parameters:
settings (SettingsType)
- class CommonRereference(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformerUnit[CommonRereferenceSettings,AxisArray,AxisArray,CommonRereferenceTransformer]- Parameters:
settings (Settings | None)
- SETTINGS#
alias of
CommonRereferenceSettings