Assessing the similarity of 2-Dimensional histograms

I wish to assess the similarity of two 2-dimensional histograms (i.e. two TH2’s). By similarity, I mean in the same sense as applying the Chi-Sqared test to two 1-dimensional histograms. Typically, I’d use TH1:Chi2Test for TH1’s. What can be used for TH2’s?

I can’t seem to find anything in the TH2 documentation.


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi,

You can use TH1::Chi2Test also for TH2. Since TH2 derives from TH1 the function is available.
However, functions like TH1::KolmogorovTest and TH1::AndersonDarlingTest will work only for 1d histograms and will report an error if used for a TH2

Lorenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.