Translation of Matlab code to calculate the 'h' index by Zuecco (2016)
Zuecco, G., Penna, D., Borga, M., and van Meerveld, H. J. (2016) A versatile index to characterize hysteresis between hydrological variables at the runoff event timescale. Hydrol. Process., 30: 1449– 1466. doi: 10.1002/hyp.10681.
A python translation by florianjehn is available here: https://github.com/florianjehn/Hysteresis-Index-Zuecco
Java script is available here: https://www.geo.uzh.ch/en/units/h2k/Services/Hysteresis-index.html