f_from_log: f from log

View source: R/meta_from_log.R

f_from_logR Documentation

f from log

Description

Read transition function from log

Usage

f_from_log(meta)

Arguments

meta

a data frame containing the log metadata for each set of alpha vectors desired, see meta_from_log

Details

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.)

Value

the growth function associated with the model indicated.

Examples

 # takes > 5s

source(system.file("examples/fisheries-ex.R", package = "sarsop"))
log = tempfile()
alpha <- sarsop(transition, observation, reward, discount, precision = 10,
                log_dir = log)



sarsop documentation built on Jan. 10, 2023, 5:16 p.m.

Related to f_from_log in sarsop...