pastas.stats.signatures.colwell_contingency#
- colwell_contingency(series, bins=11, freq='W', method='mean', normalize=True)[source]#
Colwell’s contingency Colwell [1974]
- Parameters
series (pandas.Series) – Pandas Series with DatetimeIndex and head values.
bins (int) – number of bins to determine the states of the groundwater.
freq (str, optional) – frequency to resample the series to.
method (str, optional) – Method to use for resampling. Only “mean” is allowed now.
normalize (bool, optional) – normalize the time series to values between zero and one.
- Returns
m – Colwell’s contingency.
- Return type
Notes
The difference between the sum of entropy for each time step and possible state of the seasonal cycle, and the overall entropy across all states and time steps, divided by the logarithm of the absolute number of possible states. Entropy according to definition in information theory, see reference for details.