Skip to content

refactor(kendall-tau): drop ConvertibleToReal constraint from kendallTau#164

Merged
JimmyMAndersson merged 1 commit into
mainfrom
refactor/161-drop-kendallstau-convertibletoreal
May 11, 2026
Merged

refactor(kendall-tau): drop ConvertibleToReal constraint from kendallTau#164
JimmyMAndersson merged 1 commit into
mainfrom
refactor/161-drop-kendallstau-convertibletoreal

Conversation

@JimmyMAndersson
Copy link
Copy Markdown
Owner

kendallTau only requires ordinal data — Comparable and Hashable are sufficient. All arithmetic inside the function operates on Int values derived from counts, not on T or U directly. Removing ConvertibleToReal makes the API consistent with that requirement.

Also adds an ordinal-data test using non-numeric enum types to exercise the relaxed constraint.

Closes #161

kendallTau only requires ordinal data — Comparable and Hashable are
sufficient. All arithmetic inside the function operates on Int values
derived from counts, not on T or U directly. Removing
ConvertibleToReal makes the API consistent with that requirement.

Also adds an ordinal-data test using non-numeric enum types to
exercise the relaxed constraint.

Closes #161
@JimmyMAndersson JimmyMAndersson self-assigned this May 11, 2026
@JimmyMAndersson JimmyMAndersson added the improvement Refactoring or refinements to functionality label May 11, 2026
@JimmyMAndersson JimmyMAndersson merged commit 690a8de into main May 11, 2026
5 checks passed
@JimmyMAndersson JimmyMAndersson deleted the refactor/161-drop-kendallstau-convertibletoreal branch May 11, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Refactoring or refinements to functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant