View source: R/meta_from_log.R
f_from_log | R Documentation |
Read transition function from log
f_from_log(meta)
meta |
a data frame containing the log metadata
for each set of alpha vectors desired, see
|
note this function is unique to the fisheries example problem and assumes that sarsop call is run with logging specifying a column "model" that contains either the string "ricker" (corresponding to a Ricker-type growth function) or "allen" (corresponding to an Allen-type.)
the growth function associated with the model indicated.
# takes > 5s
source(system.file("examples/fisheries-ex.R", package = "sarsop"))
log = tempfile()
alpha <- sarsop(transition, observation, reward, discount, precision = 10,
log_dir = log)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.