bh_slack_correct: Slack Correction

View source: R/old_code/bluehill_functions.2.R View source: R/old_code/bluehill_functions.1.R View source: R/bluehill_functions.R

bh_slack_correctR Documentation

Slack Correction

Description

Remove any slack at the start of a test (or cycle)

Usage

bh_slack_correct(DT)

Arguments

DT

a data.table with Load and Extension channels to be corrected.

Details

The Bluehill version sets the limits at 2% and 80% of maximum then uses AutoSlope to get the estimated slope and sets the new zero to where that line intersects y = 0.

This version justs fits a single line to the range from 2% to 80% of maximum and uses the intercept from that to define the zero point. Rows before that point are removed and the first row subtracted from both Time and Extension so that they start from zero. Load is unchanged.

Really just a wrapper for trim_slack().

Value

The original series with any initial slack portion removed.


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.