r_event_counting: Generates random samples of event counts
Description
Random generation of behavior streams (based on an alternating
renewal process) of a specified length and with specified mean event
durations, mean interim times, event distribution, and interim distribution,
summarized as the the total number of behaviors that began during the recording
session
distribution of event durations. Must be of class eq_dist.
F_interim
distribution of interim times. Must be of class eq_dist.
equilibrium
logical; if TRUE, then equilibrium initial conditions are used;
if FALSE, then p0 is used to determine initial state and normal generating
distributions are used for event durations and interim times.
p0
Initial state probability. Only used if equilibrium = FALSE, in which case
default is zero (i.e., behavior stream always starts with an interim time).
tuning
controls the size of the chunk of random event durations and interim times.
Adjusting this may be useful in order to speed computation time .
Author
Daniel Swan <dswan@utexas.edu>
Details
Generates behavior streams by repeatedly drawing random event durations and
random interim times from the distributions as specified, until the sum of the durations and interim
times exceeds the requested stream length. Then applies an event counting filter to the generated behavior streams.