generate_segments: Generate analysis segments given a start and stop time.

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.

Usage

1
2
generate_segments(time.start, time.stop, segment.length, segment.overlap,
  tolerance = 1)

Arguments

time.start

A start time in seconds.

time.stop

A stop time in seconds.

segment.length

The segment length in seconds.

segment.overlap

The segment overlap in seconds.

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_from_block, 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.