HASPT: Heuristic Algorithms estimating SPT window.

View source: R/HASPT.R

HASPTR Documentation

Heuristic Algorithms estimating SPT window.

Description

As used in function g.sib.det. Function is not intended for direct use by GGIR user.

Usage

HASPT(angle, sptblocksize = 30, spt_max_gap = 60, ws3 = 5, 
      HASPT.algo="HDCZA", HDCZA_threshold = c(), invalid, 
      HASPT.ignore.invalid = FALSE, activity = NULL,
      marker = NULL, sibs = NULL, try_marker_button = FALSE)

Arguments

angle

Vector of epoch level estimates of angle

sptblocksize

Number to indicate minimum SPT block size (minutes)

spt_max_gap

Number to indicate maximum gap (minutes) in SPT window blocks.

ws3

Number representing epoch length in seconds

HASPT.algo

See GGIR

HDCZA_threshold

See GGIR

invalid

Integer vector with per epoch an indicator of valid(=0) or invalid(=1) epoch.

HASPT.ignore.invalid

Boolean to indicate whether invalid time segments should be ignored

activity

Numeric vector with magnitude of acceleration per epoch, only used when HASPT.algo is set to NotWorn. Acceleration metric used is specified by argument acc.metric elsewhere in GGIR.

marker

Optional, numeric vector with for each epoch an indication of whether the marker button was pressed (1) or not (0). Only used for Actiwatch-like devices such as MotionWare.

sibs

Numeric vector of classified sibs with HASIB, experimental not used at the moment.

try_marker_button

See GGIR

Value

List with start and end times of the SPT window and the threshold as used.

Author(s)

Vincent T van Hees <v.vanhees@accelting.com>


GGIR documentation built on June 8, 2025, 11:39 a.m.