Least square with mass balance penalty
lsq_mb(hat, obs, lambda, mus, sigmas, log.seasons, log.ann, N, sInd)
A vector of estimated flow in the transformed space.
A vector of observed flow in the transformed space.
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
Objective function value: least squares plus a penalty term.