As used in function g.sib.det. Function is not intended for direct use by GGIR user.
HASPT(angle, perc = 10, spt_threshold = 15, sptblocksize = 30,
spt_max_gap = 60, ws3 = 5, constrain2range = FALSE,
HASPT.algo="HDCZA", invalid, HASPT.ignore.invalid=FALSE)
List with start and end times of the SPT window and the threshold as used.
Vector of epoch level estimates of angle
Number to indicate percentage threshold (default 10 corresponds to 2018 paper)
Numeric threshold used in HASPT algorithm (default 15 corresponds to 2018 paper)
Number to indicate minimum SPT block size (minutes)
Number to indicate maximum gap (minutes) in SPT window blocks.
Number representing epoch length in seconds
Bolean to indicate whether threshold should be constrained to a range
Character to indicate what algortihm should be used. Default "HDCZA" is Heuristic algorithm looking at Distribution of Change in Z-Angle as described in van Hees et al. 2018. Other options included: "HorAngle", which is based on HDCZA but replaces non-movement detection of the HDCZA algorithm by looking for time segments where the angle of the longitudinal sensor axis has an angle relative to the horizontal plane between -45 and +45 degrees.
Integer vector with per epoch an indicator of valid(=0) or invalid(=1) epoch.
Boolean to indicate whether invalid time segments should be ignored
Vincent T van Hees <v.vanhees@accelting.com>