generate_segments_from_block: Generate analysis segments given a block.

Description Usage Arguments Value See Also

Description

If segmentlength is zero, the entire block length is used and no segments are created. The tolerance is given in seconds, and defaults to 1 second. The tolerance affects the last segment. If the last segment would, e.g., extend past the data, the tolerance parameter can be used to adjust when a slightly-shorter segment is accepted, and when the entire segment must be discarded. The segment length and overlap are read from the settings structure.

Usage

1
generate_segments_from_block(block, settings, tolerance = 1)

Arguments

block

A block structure

settings

The settings structure used for HRV analysis.

tolerance

The tolerance of the last segment length in seconds. Optional, default is 1.

Value

A two-column matrix with the start time (in seconds) of each segment in the first column and the stop time (in seconds) in the second column.

See Also

Other utilities: defactor, ensure_path, extract_segment_block, extract_segment_s, extract_segment_timestamp, extract_segment, generate_result_row, generate_segments, get_file_extension, get_filename_parts, hr_from_ibi, ibi_from_ecg, integrate_power, num_to_timestamp, replicate_df_row, seconds_to_indices, str_to_timestamp, timeintervals_to_seconds, timestamp_to_seconds, timestamp_to_str


bwrc/colibri documentation built on May 13, 2019, 9:10 a.m.