ezmsg.sigproc.math.pow#

Element-wise power of the data.

Note

This module supports the Array API standard, enabling use with NumPy, CuPy, PyTorch, and other compatible array libraries.

Functions

pow(exponent=2.0)[source]#

Raise the data to an element-wise power. See xp.pow for more details.

Parameters:

exponent (float) – The exponent to raise the data to. Default is 2.0.

Return type:

PowTransformer

Returns: PowTransformer.

Classes

class Pow(*args, settings=None, **kwargs)[source]#

Bases: BaseTransformerUnit[PowSettings, AxisArray, AxisArray, PowTransformer]

Parameters:

settings (Settings | None)

SETTINGS#

alias of PowSettings

class PowSettings(exponent: float = 2.0)[source]#

Bases: Settings

Parameters:

exponent (float)

exponent: float = 2.0#

The exponent to raise the data to. Default is 2.0 (squaring).

__init__(exponent=2.0)#
Parameters:

exponent (float)

Return type:

None

class PowTransformer(*args, settings=None, **kwargs)[source]#

Bases: BaseTransformer[PowSettings, AxisArray, AxisArray]

Parameters:

settings (SettingsType)