Call a reconstruction method subroutine according to the method required
call_method(
y,
u,
v,
method,
init,
num.restarts,
return.init,
ub,
lb,
num.islands,
pop.per.island,
niter,
tol
)
Catchment output, preprocessed from data
Input matrix for a single-model reconstruction, or a list of input matrices for an ensemble reconstruction.
Same as u.
By default this is "EM". There are experimental methods but you should not try.
A list, each element is a vector of initial values for the parameters. If NULL
, will be created by make_init()
. See make_init for details.
The number of initial conditions to start the EM search; ignored if init
is provided.
If TRUE
, the list of initial values (init
) will be returned. This can be useful if you want to reproduce the model from this one set of initial values.
Upper bounds, a vector whose length is the number of parameters
Lower bounds
Number of islands (if method is GA; experimental)
Initial population per island (if method is GA; experimental)
Maximum number of iterations, default 1000
Tolerance for likelihood convergence, default 1e-5. Note that the log-likelihood is normalized by dividing by the number of observations.
The results as produced by LDS_EM_restart()
when the default method (EM) is called. Other methods are experimental.