qat (version 0.74)

qat_analyse_roc_rule_static_1d: Perform a static roc-rule-check

Description

This check tests data on whether the change between two consecutive data points exceeds a static threshold.

Usage

qat_analyse_roc_rule_static_1d(measurement_vector, max_upward_value, max_downward_value)

Arguments

measurement_vector
The measurement vector, which should be tested
max_upward_value
The upward threshold
max_downward_value
The downward threshold, which should be positive definite

Value

It returns a list with the following entries:

Details

This check tests two consecutive elements, 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.

References

Meek, D.W., Hatfield, J.L. (1994) Data quality checking for single station meteorological databases, \_Agricultural and Forest Meteorology\_, *69* (1-2), 85-109.

See Also

qat_plot_roc_rule_static_1d, qat_call_roc_rule, qat_analyse_roc_rule_dynamic_1d

Examples

Run this code
vec <- rnorm(100)
result <- qat_analyse_roc_rule_static_1d(vec, 2,2)

Run the code above in your browser using DataLab