Add

class npdsp.Add(value: ArrayLike, name: str | None = None)[source]

Add a value to the input signal.

Parameters:
  • value (SignalLike) – Value or array to add to the input signal.

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

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

Add the configured value to the input signal.

Parameters:

x (Signal) – Input signal.

Returns:

Signal with self.value added element-wise using NumPy broadcasting rules.

Return type:

Signal