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 self-assigned this Jan 11, 2026
@dpiparo dpiparo requested a review from lmoneta as a code owner January 11, 2026 14:00
@github-actions
Copy link

Test Results

    17 files      17 suites   2d 19h 19m 7s ⏱️
 2 750 tests  2 749 ✅ 0 💤 1 ❌
45 335 runs  45 334 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit f00eaf4.

@dpiparo dpiparo merged commit b4fd093 into root-project:v6-36-00-patches Jan 12, 2026
18 of 22 checks passed
@dpiparo dpiparo deleted the bp_20798_636 branch January 12, 2026 08:53
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