Skip to content

Fix bug for Kruskal-Wallis#229

Merged
Shimuuar merged 1 commit intohaskell:masterfrom
daikonradish:kruskalagain
Jan 31, 2026
Merged

Fix bug for Kruskal-Wallis#229
Shimuuar merged 1 commit intohaskell:masterfrom
daikonradish:kruskalagain

Conversation

@daikonradish
Copy link
Contributor

Sorry, changed computers so it was easier for me to work from a clean slate.

This PR Incorporates comments from #227 to fix #148.

None of the function signatures are changed.

  • kruskalWallisRank continues to return the same rank if all input values across all samples are the same.
  • kruskalWallis returns NaN if all input values across all samples are the same
  • kruskalWallisTest catches NaN to return Nothing if all input values across all samples are the same.

Exception were thrown in case when all sample values are identical and
test statistic evaluated to NaN

Fixes haskell#148
@Shimuuar Shimuuar merged commit 2a7745b into haskell:master Jan 31, 2026
15 checks passed
@Shimuuar
Copy link
Collaborator

Merged. Thank you!

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.

Kruskal Wallis out of range

2 participants