Mass Balance Reconstruction
Back-transformation
Reconstruction metrics
Scale columns of a matrix
Unscale columns of a matrix
Cross-validation
Kling-Gupta Efficiency
Least square with mass balance penalty
Make cross-validation folds.
Fit parameters with mass balance criterion
Mass-balance-adjusted reconstruction
mbr: Mass Balance Reconstruction
Normalized root-mean-square error
Nash-Sutcliffe Efficiency
Objective function from parameters
Prepend a column of ones
Reduction of Error
Scale rows of a Matrix
Unscale rows of a matrix
Mass-balance-adjusted Regression algorithm for streamflow reconstruction at sub-annual resolution (e.g., seasonal or monthly). The algorithm implements a penalty term to minimize the differences between the total sub-annual flows and the annual flow. The method is described in Nguyen et al (2020) <DOI:10.1002/essoar.10504791.1>.