Useful for extracting a set of representative samples for each run,
assuming the last part of each run is the most representative.
Can specify a maximum share of samples that the function
preserves. Runs with fewer samples are removed entirely.
Usage
preserve_last_sec(.input, .sec, .max_share = 0.5, .equal_count_per_run = FALSE)
Arguments
- .input
Measurement results to filter.
- .sec
How old samples taken from end to preserve.
- .max_share
Maximum share of samples to preserve.
- .equal_count_per_run
Make sample count per run equal.
Value
Filtered measurement results.
Details
When equal sample count per run is requested,
it is chosen to be the median sample count.