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