Sojourn¶
Sojourn¶
Defines methods for classifying activity levels based on a second-by-second input using sojourn methods.
Provides 1x and a method that outputs that list of clumped data
-
ventana.sojourn.get_clumps(counts)¶ Sojourn second-by-second estimation of METs based on second-by-second vertical counts
Parameters: counts (list) – Second-by-second vertical counts (numbers) Returns: List of tuples that can contains (sojourn, identity) where sojourn is a second-by-second list of vertical counts and identity is a string in (“undetermined”, “sedentary”, “activity”) Return type: list
-
ventana.sojourn.sojourn_1x(counts, met_method=<function cr2_mets>)¶ Sojourn second-by-second estimation of METs based on second-by-second vertical counts
Parameters: - counts (list) – Second-by-second vertical counts (numbers)
- met_method (func) – name of function used to estimate METs
Returns: Second-by-second estimation of METs (floats)
Return type: list