Skip to contents

The output can be used to determine the # of stimuli and timing for subsequent functions.

Usage

calculate_stimulus_times(stimulus_time_first, stimulus_count, stimulus_isi)

Arguments

stimulus_time_first

Numeric, time of the first stimulus in ms

stimulus_count

Numeric, number of stimuli

stimulus_isi

Numeric, interstimulus interval in ms, e.g. 25 Hz = 40 ms

Value

returns a vector of stimulus times to the matools_env:

  • time_of_stimuli vector with stimulus times

Examples

if (FALSE) {
library(matools)

calculate_stimulus_times(
  matools_env$stimulus_time_of_first,
  matools_env$stimulus_count,
  matools_env$stimulus_isi
)
}