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](../../_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 |
---|---|
|
\(y_{M} = \sum_{k=0}^{M-1}{y_{k}}\) |
|
\(y_{M} = \dfrac{1}{M}\sum_{k=0}^{M-1}{y_{k}}\) |
|
\(y_{2} = y_{1} - y_{0}\) |
|
\(y_{M} = \prod_{k=0}^{M-1}{y_{k}}\) |
|
\(y_{2} = \dfrac{y_{1}}{y_{0}}\) |
Operations with a constant#
Create a new signal which is the result of a constant operation on each selected signal:
Operation |
Description |
---|---|
|
\(y_{k} = y_{k-1} + c\) |
|
\(y_{k} = y_{k-1} - c\) |
|
\(y_{k} = y_{k-1} \times c\) |
|
\(y_{k} = \dfrac{y_{k-1}}{c}\) |
Real and imaginary parts#
Operation |
Description |
---|---|
|
\(y_{k} = |y_{k-1}|\) |
|
\(y_{k} = \Re(y_{k-1})\) |
|
\(y_{k} = \Im(y_{k-1})\) |
Data type conversion#
The āConvert data typeā 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 |
---|---|
|
\(y_{k} = \exp(y_{k-1})\) |
|
\(y_{k} = \log_{10}(y_{k-1})\) |
|
\(y_{k} = y_{k-1}^{n}\) |
|
\(y_{k} = \sqrt{y_{k-1}}\) |
Other mathematical operations#
Operation |
Implementation |
---|---|
|
Based on numpy.gradient |
|
Based on scipy.integrate.cumulative_trapezoid |
|
Based on scipy.signal.convolve |