Skip to content

Conversation

@dpiparo
Copy link
Member

@dpiparo dpiparo commented Jan 11, 2026

[hist] Chi2Test: Support residuals for 2D/3D histograms

Fixed bug where Chi2Test only stored residuals for 1D histograms. For 2D/3D histograms, the residual array indexing ignored j and k loop indices, causing incorrect storage.

Added resIndex counter for each comparison mode (UU, UW, WW) to properly index the residuals array for multi-dimensional histograms.

Fixes #20761

(cherry picked from commit 5b770f8)

)

[hist] Chi2Test: Support residuals for 2D/3D histograms

Fixed bug where Chi2Test only stored residuals for 1D histograms.
For 2D/3D histograms, the residual array indexing ignored j and k
loop indices, causing incorrect storage.

Added resIndex counter for each comparison mode (UU, UW, WW) to
properly index the residuals array for multi-dimensional histograms.

Fixes root-project#20761

(cherry picked from commit 5b770f8)
@dpiparo dpiparo requested a review from lmoneta as a code owner January 11, 2026 13:58
@dpiparo dpiparo self-assigned this Jan 11, 2026
@github-actions
Copy link

Test Results

    21 files      21 suites   3d 14h 56m 37s ⏱️
 3 710 tests  3 710 ✅ 0 💤 0 ❌
76 055 runs  76 055 ✅ 0 💤 0 ❌

Results for commit 153d34b.

@dpiparo dpiparo merged commit 27811a7 into root-project:v6-38-00-patches Jan 11, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants