[response, logs] = frambi_simulate(agent, environment, options)
agent | Structure representing the FrAMBI agent. See the general description of FrAMBI for more details. See exp_barumerli2024 for an example. |
environment | Structure representing the FrAMBI environment. See the general description of FrAMBI for more details. See exp_barumerli2024 for an example. |
options | Structure representing the FrAMBI options. It needs to contain the structure sample with the following fields:
|
response | Response simulated by the agent. Depending on the function defined in agent.model.respond, it can be a scalar, vector, or matrix. |
logs | Cell array documenting the internal states and decisions in each cycle, useful for debugging and detailed analysis. Each row of logs contains information about a single perception-action cycle with the following fields:
The last row of logs contains the field response, which stores the response as returned by the function agent.model.respond. |
frambi_simulate(..) simulates a single behavioral trial in an experiment described as perception-action cycles. To this end, the interaction between the agent and the environment is simulated by iterating over the following sequence:
This simulates the mechanisms present in a single behavioral trial.
With the trial being finished, frambi_simulate(..) obtains a response from the agent as defined in agent.model.respond.
R. Barumerli and P. Majdak. FrAMBI: A Software Framework for Auditory Modeling Based on Bayesian Inference. under review at Neuroinformatics, 2024.