Operations on Signals#

This section describes the operations that can be performed on signals.

See also

Processing Signals for more information on signal processing features, or Analysis features on Signals for information on analysis features on signals.

../../_images/s_operation.png

Screenshot of the “Operations” menu.#

When the “Signal Panel” is selected, the menus and toolbars are updated to provide signal-related actions.

The “Operations” menu allows you to perform various operations on the selected signals, such as arithmetic operations, peak detection, or convolution.

Basic arithmetic operations#

Operation

Description

sum Sum

yM=k=0M1yk

average Average

yM=1Mk=0M1yk

difference Difference

y2=y1y0

product Product

yM=k=0M1yk

division Division

y2=y1y0

inverse Inverse

y2=1y1

Operations with a constant#

Create a new signal which is the result of a constant operation on each selected signal:

Operation

Description

constant_add Addition

yk=yk1+c

constant_substract Subtraction

yk=yk1c

constant_multiply Multiplication

yk=yk1×c

constant_divide Division

yk=yk1c

Absolute value, real and imaginary parts#

Operation

Description

abs Absolute value

yk=|yk1|

re Real part

yk=(yk1)

im Imaginary part

yk=(yk1)

Data type conversion#

The “Convert data type” convert_dtype action allows you to convert the data type of the selected signals.

Note

Data type conversion relies on numpy.ndarray.astype() function with the default parameters (casting=’unsafe’).

Basic mathematical functions#

Function

Description

exp Exponential

yk=exp(yk1)

log10 Logarithm (base 10)

yk=log10(yk1)

power Power

yk=yk1n

sqrt Square root

yk=yk1

Other mathematical operations#

Operation

Implementation

derivative Derivative

Based on numpy.gradient

integral Integral

Based on scipy.integrate.cumulative_trapezoid

convolution Convolution

Based on scipy.signal.convolve