rtqc_rate_alt.Rd
Perform a rate of change test. This is a variant of rtqc_flat()
which checks the absolute rate of change over a given number
of observations (defined as the absolute value of the average of
the rates of change between successive observations)
rtqc_rate_alt(x, threshold, n.prior)
x | A vector of values. |
---|---|
threshold | The absolute rate of change over a set of observations. A rate of change above this value will flag the final data point in the set. |
n.prior | the number of prior observations to calculate the rate of change over, excluding the current observation. |
An ordered factor of test flags of same length as x
.
#> [1] <NA> <NA> <NA> pass pass pass pass pass pass pass pass pass pass pass pass #> [16] pass pass pass pass pass pass pass pass pass pass pass pass pass pass pass #> Levels: pass < not evaluated < suspect < fail