augmented_recording: Applies augmented interval recording to a behavior stream

Description Usage Arguments Details Value Examples

View source: R/observation_method_filters.R

Description

Divides the observation session into intervals. Each interval is scored using partial interval recording, whole interval recording, and momentary time sampling (at the beginning of the following interval).

Usage

1
augmented_recording(BS, interval_length, rest_length = 0)

Arguments

BS

object of class behavior_stream

interval_length

time length of each interval.

rest_length

portion of each interval to exclude from observation. Default is zero. See details.

Details

Each behavior stream is divided into intervals of length interval_length. The last rest_length of each interval is excluded from observation. For example, for a stream length of 100, interval_length = 20, and rest_length = 5, the first interval runs from [0,15), the second interval runs from [20,35), etc.

Value

A matrix with rows equal to the number of intervals per session and columns equal to the number of behavior streams in BS.

Examples

1
2
3
BS <- r_behavior_stream(n = 5, mu = 3, lambda = 10, 
                       F_event = F_exp(), F_interim = F_exp(), stream_length = 100)
augmented_recording(BS, interval_length = 20)

ARPobservation documentation built on May 1, 2021, 1:08 a.m.