Absolute

class npdsp.Absolute(name: str | None = None)[source]

Calculate the absolute value of a signal.

Parameters:

name (str, optional) – Optional name used to identify the block within a pipeline.

process(x: NDArray[Any]) NDArray[Any][source]

Calculate the absolute value of the input signal.

Parameters:

x (Signal) – Input signal.

Returns:

Element-wise absolute value of the input signal.

Return type:

Signal