pyPDAF.PDAF.diag_ensstats¶
- pyPDAF.PDAF.diag_ensstats()¶
Computing the skewness and kurtosis of the ensemble of a given element of the state vector.
The definition used for kurtosis follows that used by [1].
References
- Parameters:
element (int) – Index of state vector/ensemble element to be used. If element=0, mean values over all elements are computed
state (ndarray[tuple[dim], np.float64]) –
State vector (typically ensemble mean)
The array dimension dim is PE-local state dimension.
ens (ndarray[tuple[dim, dim_ens], np.float64]) –
State ensemble
The1st-th dimension dim is PE-local state dimension; the2nd-th dimension dim_ens is Ensemble size.
- Returns:
skewness (float) – Skewness of ensemble
kurtosis (float) – Kurtosis of ensemble
status (int) – Status flag (0=success)