Hi,
I’m Trying to get the correlation ratio for my TH2F, and I encountered this problem. This is my code:
TMVA::Tools & tmvaInstace = TMVA::Tools::Instance();
TFile file(<file_name>);
TH2F *hist;
file.GetObject(<histogram_name>, hist);
const TH2F &constHistRef = *hist;
cout << "Correlaton ratio: " << tmvaInstace.GetCorrelationRatio(constHistRef) << endl;
The value I get from the method is 1.02180220974304570e+00, which is statistically impossible… What am I doing wrong? I tried removing the ‘const’ decleration from constHistRef, but got no change.
Thank you!