Perform a histogram test with the metric MS
This check divides the data into blocks, estimates their probability density functions by histograms and compares them by using the Mean Square.
qat_analyse_histogram_test_ms_1d(measurement_vector, blocksize, numofbars)
- The measurement vector, which should be tested
- Number of elements in the first dimension, which should be used for each block
- Number of bins of the histogram
The vector will be divided into blocks, with a length given by the parameter blocksize. From these blocks histograms are computed and afterwards compared. As a metric for the comparison the Mean Square is used. As a result a field is generated, which includes the results of the comparison between every combination of blocks.
Duesterhus, A., Hense, A. (2012) Advanced Information Criterion for Environmental Data Quality Assurance, \_Advances in Science and Research\_, *8*, 99-104.
vec <- c(rnorm(1000), rnorm(1000)+2) result <- qat_analyse_histogram_test_ms_1d(vec, 50, 65) qat_plot_histogram_test(result$field, "test_ms_1d", result$blocksize, result$numofbars, "ms", result$runs)