Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/qat_analyse_lim_rule_sigma_2d.R
This check tests data on whether it exceeds a threshold formed by multiple standard derviations away from the mean.
1 | qat_analyse_lim_rule_sigma_2d(measurement_vector, sigma_factor)
|
measurement_vector |
The measurement vector (2d array), which should be tested |
sigma_factor |
Multiplier of standard derivation, which determin the maximum allowed deviation from the mean |
First the mean and the standard derivation of the measurement vector will be calculated. After this the limits will be determined by
lim_{\pm} = μ \pm f σ,
where f is the given sigma factor.
It returns a list with the following entries:
flagvector |
A vector of length of measurement vector. For every element of the measurement vector the flagvector (2d array) contains a -1, if its exceeding its dedicated minimum vector element, a 1, if its exceeding its dedicated maximum vector element, or a 0, when no exceeding has happenned. |
sigma_factor |
Give back the given sigma\_factor |
meanofvector |
Give back the calculated mean of the measurement vector |
sdofvector |
Give back the calculated standard deviation of the measurement vector |
Andre Duesterhus
Meek, D.W., Hatfield, J.L. (1994) Data quality checking for single station meteorological databases, \_Agricultural and Forest Meteorology\_, *69* (1-2), 85-109.
qat_analyse_lim_rule_sigma_1d
, qat_plot_lim_rule_sigma_2d
, qat_call_lim_rule
, qat_analyse_lim_rule_static_2d
, qat_analyse_lim_rule_dynamic_2d
1 2 | vec <- array(rnorm(100),c(5,20))
result <- qat_analyse_lim_rule_sigma_2d(vec, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.