THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

View the code

Go to function

frambi_plot
Plot the agent and environment states

Usage:

frambi_plot(logs, a_names, e_names);

Input parameters:

logs

Cell array generated by frambi_simulate containing log entries for each simulation cycle (in rows) with the following fields:

  • agent: Structure containing the state of the agent.
  • environment: Structure containing the state of the environment.
  • response: The response as returned by the function agent.model.respond. Only the response of the last element in logs will be displayed, all other elements will be ignored.
a_names Cell array with strings specifying the field names to be plotted for the agent.
e_names Cell array with strings specifying the field names to be plotted for the environment.

Description:

frambi_plot(..) plots the specified agent and environment states obtained from frambi_simulate as a function of the cycle index or the time (if available). If e_names contains a state called time, this state is used for plotting instead of the cycle index.

See the figure dynamic in exp_barumerli2024 for an example.

References:

R. Barumerli and P. Majdak. FrAMBI: A Software Framework for Auditory Modeling Based on Bayesian Inference. under review at Neuroinformatics, 2024.