@@ -14,9 +14,8 @@ Runs the model with default parameters.
"""
function bench()
p=get_parameters()
recording=DebugRecorder(0.0,p.sim_length)
abm(p,recording)
returnrecording
out=abm(p)
returnout
end
...
...
@@ -34,8 +33,8 @@ end
"""
Run the model with given parameter tuple and output recorder. See `get_parameters` for list of parameters. See `output.jl` for the list of recorders. Currently just 'DebugRecorder`.
AbstractRecorder is the type that all "Recorder" types must extend for `fit!` (and possibly other stuff) to dispatch correctly.
The point of using different recorder types is that we only want to save the output that we need, and that output will vary depending on the specific experiment.
AbstractRecorders can be parameterized to have any element type, so when they are parameterized with T<:OnlineStat, we can use `fit!` to collect statistics about a bunch of Recorders into a single Recorder.
"""
abstract type AbstractRecorder{ElType}end
"""
DebugRecorder should store everything we might want to know about the model output.
Recorder should store everything we might want to know about the model output.