pyActigraphy.reports.ActivityReport.fit

ActivityReport.fit(threshold=None, start_time=None, stop_time=None, oformat=None, verbose=False)[source]

Compute time spent above thresholds.

Calculate the total time spent within the specified activity ranges.

Parameters
  • threshold (float, optional) – If not set to None, discard data below threshold before computing activity ranges. Default is None.

  • start_time (str, optional) – If not set to None, discard data before start time, on a daily basis. Supported time string: ‘HH:MM:SS’ Default is None.

  • stop_time (str, optional) – If not set to None, discard data after stop time, on a daily basis. Supported time string: ‘HH:MM:SS’ Default is None.

  • oformat (str, optional) – Output format. Available formats: ‘minute’ or ‘timedelta’. If set to ‘minute’, the result is in number of minutes. If set to ‘timedelta’, the result is a pd.Timedelta. If set to None, the result is in number of epochs. Default is None.

Returns

tat – Report on the time spent within activity ranges.

Return type

pd.Series