function to calculate bouts from vector of binary classes
g.getbout.RdTo detect bouts of behaviour in time series. The function is used by g.analyse
Arguments
- x
vector of zeros and/or ones to be screened for bouts of ones
- boutduration
duration of bout in epochs
- boutcriter
Minimum percentage of boutduration for which the epoch values are expected to meet the threshold criterium
- ws3
epoch length in seconds, only needed for bout.metric =3, because it needs to measure how many epochs equal 1 minute breaks