Sports Lib API - v23.12.1
    Preparing search index...

    Function filterRRHeartRate

    Causal HR estimation from raw R–R, with 40-interval consistency and gap-safe timed filtering.

    • Filter raw R–R intervals with activity-relative end timestamps in milliseconds, within [0, durationMs]. Preserves original intervals and end times (clamping sub-microsecond boundary rounding), without mutating input. Invalid observations, source gaps and boundary-crossing intervals reset the state; positive out-of-range intervals remain in the filter history. Rejects overlapping/backward intervals with the same 0.001 ms tolerance as R–R analysis. Returns one result per complete positive interval; does not interpolate missing recordings or apply HRV artifact flags.

      Parameters

      Returns RRHeartRateSample[]