average_rectified_valueCalculates the average rectified value.
xxxxxxxxxxaverage_rectified_value(x)xxxxxxxxxxm = average_rectified_value(x)In electrical engineering, the average rectified value is the average of its absolute value.
That is,
where
xxxxxxxxxx>>> from OpenHA.processing.feature import average_rectified_value>>> import numpy as np
>>> x = np.array([0, 1, 2, 3, 4])>>> print(average_rectified_value(x))
2.0
x —— A 1-D array of observations of length n, namely n observations of a quantity.
| Name of the parameters | Is optional? | Source, dialog or input port? |
|---|---|---|
x | No | Input port |