Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/qat_analyse_roc_rule_static_2d.R
This check tests data on whether the change between two consecutive data points exceeds a static threshold.
1 2 | qat_analyse_roc_rule_static_2d(measurement_vector, max_upward_value,
max_downward_value)
|
measurement_vector |
The measurement vector (2d array), which should be tested |
max_upward_value |
The upward threshold |
max_downward_value |
The downward threshold, which should be positive definite |
This check tests two consecutive elements (in the direction of the first dimension), on wether the change of values between those two exceeds the upward or downward threshold. The result will be given back as a list, which contains the result of the test as a flagvector and its parameters. For every change between two elements of the measurement vector the flagvector contains a -1, if its exceeding the downward value, a 1, if its exceeding the upward value, or a 0, when no exceeding has happend.
It returns a list with the following entries:
flagvector |
A vector with the dimensions of the measurement vector. For every change between two elements of the measurement vector the flagvector contains a -1, if its exceeding the downward value, a 1, if its exceeding the upward value, or a 0, when no exceeding has happend. |
max_upward_value |
Give back the given max\_upward\_value |
max_downward_value |
Give back the given max\_downward\_value |
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_roc_rule_static_1d
, qat_plot_roc_rule_static_2d
, qat_call_roc_rule
, qat_analyse_roc_rule_dynamic_2d
1 2 | vec <- array(rnorm(100),c(5,20))
result <- qat_analyse_roc_rule_static_2d(vec, 2,2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.