deartifact: 'deartifacr' corrects artifacts by subtacting from each...

Description Usage Arguments Value

View source: R/data_proc.R

Description

deartifacr corrects artifacts by subtacting from each observation the cumulative sum of observations > delta_max. Empirically, histograms of my differenced show a consistent discontinuity around 2.5, suggesting that this is an appropriate value for delta_max.

Usage

1
deartifact(x, delta_max = 2.5)

Arguments

x

A vector of differenced time-ordered observations

delta_max

A real number defining the weight chenge threshold above which a weight change is considered an artifact.

Value

A vector of de-artifacted observations


sponslerdb/hivescaler documentation built on Dec. 7, 2019, 8:17 p.m.