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)

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

Magnitude of acceleration, only used when HASPT.algo is set to NotWorn. Acceleration metric used is specified by argument acc.metric elsewhere in 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 Sept. 11, 2024, 8:59 p.m.