powered by
To detect bouts of behaviour in time series. The function is used by g.analyse
g.getbout(x, boutduration, boutcriter = 0.8, ws3 = 5)
Vector with binary numbers indicator where bouts where detected
vector of zeros and/or ones to be screened for bouts of ones
duration of bout in epochs
Minimum percentage of boutduration for which the epoch values are expected to meet the threshold criterium
epoch length in seconds, only needed for bout.metric =3, because it needs to measure how many epochs equal 1 minute breaks
Vincent T van Hees <v.vanhees@accelting.com> Jairo Hidalgo Migueles
y = g.getbout(x=round(runif(1000, 0.4, 1)), boutduration = 120, boutcriter=0.9, ws3 = 5)
Run the code above in your browser using DataLab