Fit parameters with mass balance criterion
mb_fit(X, Y, lambda, mus, sigmas, log.seasons, log.ann, N, sInd)
Inputs, must have columns of 1 added
Observed Dry, Wet, and Annual log-transformed flows
Penalty weight.
A vector of means, one for each target.
A vector of the standard deviations, one for each target.
A vector containing the indices of the seasons that are log-transformed.
TRUE if the annual reconstruction is log-transformed.
The number of targets (number of seasons plus one for the annual reconstruction).
Indices of the seasons, i.e, 1...N-1
A one-column matrix of beta value