# qat_analyse_histogram_test_emd_2d

From qat v0.74
0th

Percentile

##### Perform a histogram test with the metric EMD

This check divides the data into blocks, estimates their probability density functions by histograms and compares them by using the Earth Movers Distance.

Keywords
ts
##### Usage
qat_analyse_histogram_test_emd_2d(measurement_vector, blocksize, numofbars)
##### Arguments
measurement_vector
The measurement vector (2d array), which should be tested
blocksize
Number of elements in the first dimension, which should be used for each block
numofbars
Number of bins of the histogram
##### Details

The field will be divided into blocks in the first dimension, with a length given by the parameter blocksize. From these blocks histograms are computed and afterwards compared. As a metric for the comparison the Earth Movers Distance is used. As a result a field is generated, which includes the results of the comparison between every combination of blocks.

##### References

Duesterhus, A., Hense, A. (2012) Advanced Information Criterion for Environmental Data Quality Assurance, \_Advances in Science and Research\_, *8*, 99-104.

qat_analyse_histogram_test_emd_1d, qat_analyse_histogram_test_kld_2d, qat_analyse_histogram_test_jsd_2d, qat_analyse_histogram_test_rms_2d, qat_analyse_histogram_test_ms_2d

##### Aliases
• qat_analyse_histogram_test_emd_2d
##### Examples
vec <- array(rnorm(1000), c(100, 20))
vec[51:100, ] <- vec[51:100, ] + 1
result <- qat_analyse_histogram_test_emd_2d(vec, 4, 65)
qat_plot_histogram_test(result$field, "test_emd_2d", result$blocksize,
result$numofbars, "emd", result$runs)

Documentation reproduced from package qat, version 0.74, License: GPL-2

### Community examples

Looks like there are no examples yet.