mx_lx_window: Compute Mx and Lx metrics

View source: R/math.R

mx_lx_windowR Documentation

Compute Mx and Lx metrics

Description

Compute Mx and Lx metrics

Usage

mx_lx_window(
  bouts,
  time_col = "TimeUTC",
  duration_col = "Duration",
  intensity_col = "AGSAMean",
  window,
  low = TRUE
)

Arguments

bouts

A data frame sorted by time containing at minimum columns for timestamp, duration and an intensity metric.

time_col

Name of the column containing Unix UTC timestamps. Defaults to "TimeUTC".

duration_col

Name of the column containing bout durations. Defaults to "Duration".

intensity_col

Name of the column containing bout intensity values. Defaults to "AGSAMean".

window

Window length in seconds.

low

Set to TRUE for both the maximum (Mx) and minimum (Lx) intensities are returned. If FALSE, only the maximum (Mx) is returned.

Details

Calculates intensity for each x duration window.

Value

A list containing the maximum and minimum mean intensity and their corresponding start times for the supplied bouts data at a given window.


GENEAcore documentation built on Oct. 22, 2026, 5:09 p.m.