skewness
Compute the skewness.
xxxxxxxxxx
skewness(x)
xxxxxxxxxx
m = skewness(x)
Compute the skewness of all the observations.
For a random variable
Where
And its observation is
where
xxxxxxxxxx
>>> from OpenHA.processing.feature import skewness
>>> import numpy as np
# sample from a normal distribution
>>> x = np.random.randn(1000)
>>> print(skewness(x))
0.032533505273764085
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 |
[1] "Measures of Skewness and Kurtosis," Online, https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm.