rl_define_stimuli_array: Define Cue Array for Tracking Cues in RL Agent's Environment

rl_define_stimuli_arrayR Documentation

Define Cue Array for Tracking Cues in RL Agent's Environment

Description

Define Cue Array for Tracking Cues in RL Agent's Environment

Usage

rl_define_stimuli_array(stimulus_input, num_episodes, num_trials)

Arguments

stimulus_input

A list of of stimuli where each element contains a data frame with columns 'onset', 'offset', 'magnitude', and 'trial' describing, respectively, the episode number a stimulus presentation begins; the episode number the stimulus presentation ends; the magnitude (saliency of a stimulus) of the stimulus; the trials the stimuli occur.

num_episodes

(numeric) The number of episodes per trial.

num_trials

(numeric) The number of trials to simulate.

Value

A three-dimensional array tacking what stimuli are present in each episode across all simulated trials.

Examples


rl_define_stimuli_array(
  list(
    one = data.frame(
      onset = 3,
      offset = 8,
      magnitude = 1,
      trial = 1:100
    )
  ),
  num_episodes = 10,
  num_trials = 100
)

jdtrat/rlsims documentation built on March 26, 2022, 6:17 p.m.