init schedules spreadFitPrepare, and, unless the ledger already holds a fit for this polygon (or doFit is TRUE), run (or debug when mode has "debug"). When heldOutFold is 1 or 2, init instead schedules only spreadFitPrepare, crossValidate (that one fold): never run, so the full fit and the ledger write never happen.

doEvent.fireSense_spreadFit(sim, eventTime, eventType, debug = FALSE)

Arguments

sim

a simList.

eventTime

numeric; current simulation time.

eventType

character; one of init, spreadFitPrepare, run, debug, plot, postFitDiagnostics (after every fit), crossValidate (mode "validate"), profileFromLedger (mode "profile").

debug

not used.

Value

the simList, invisibly.