Method implements wear/non-wear detection algorithm closely following that of
Choi et al. (2011).
The wear/non-wear flag is determined based on activity counts data.
A minute is classified as non-wear if it belongs to any
nonwear_0s_minimum_window
minutes-long interval of consecutive values 0 in
activity counts data vector;
here, "any interval" implies that a particular minute may be located
at any location (beginning, middle, end) of interval of consecutive values 0
to be classified as a non-wear. Otherwise, a particular minute is classified
as wear.
Similarly to recommendations in Discussion in Choi et al. (2011), the method
assumes
a threshold value of 0 for nonzero counts allowed during
a nonwear time interval (I.e., no activity count equal >= 1 is allowed).
The method also assumes 90 minutes as a default for
minimum time of consecutive zero counts for a window to be flagged nonwear.
Differently from recommendations in Discussion in Choi et al. (2011), it
does not
consider any "artifactual movement" interval of nonzero counts during
a nonwear time interval.