varianceCalculates the variance.
xxxxxxxxxxvariance(x, k)xxxxxxxxxxm = variance(x, k)Calculates the variance of all the observations.
That is
where
xxxxxxxxxx>>> from OpenHA.processing.feature import variance>>> import numpy as np
>>> x = np.array([0, 1, 2, 3, 4])>>> print(variance(x))
2.5
x —— A N-D array of observations.
For an n-by-m array, it indicates n observations with m features.
| Name of the parameters | Is optional? | Source, dialog or input port? |
|---|---|---|
x | No | Input port |