rowSkew#

swordfish.function.rowSkew()#

Return the skewness of each row in X.

The calculation uses the following formula when biased=true:

\[\begin{align*} \operatorname{skew}(x) &= \frac{\dfrac{1}{n}\sum_{i=1}^n (x_i-\bar{x})^3}{\left(\sqrt{\dfrac{1}{n}\sum_{i=1}^n (x_i-\bar{x})^2}\right)^3} \end{align*}\]
Parameters:
  • X (Constant) – A matrix, array vector, columnar tuple, or tuple with equal-length vectors.

  • biased (Constant, optional) – A Boolean value, indicating whether the result is biased. The default value is true, meaning the bias is not corrected.