pastas.stats.signatures.reversals_avg#

pastas.stats.signatures.reversals_avg(series: pandas.Series) float#

Average annual number of rises and falls in daily head.

Parameters:

series (pandas.Series) – Pandas Series with DatetimeIndex and head values.

Returns:

Average number of rises and falls in daily head per year.

Return type:

float

Notes

Average annual number of rises and falls (i.e., change of sign) in daily head [Richter et al., 1996]. The higher the number of reversals, the more variable the head is, and vice versa. If the head data is not daily, a warning is issued and nan is returned.