Skip to content

Conversation

@qbarthelemy
Copy link
Contributor

This PR replaces

        perm = rng.randint(2, size=(data.shape[0],))
        perm[perm == 0] = -1

by

        perm = rng.choice([1, -1], size=(data.shape[0],), replace=True)

and renames "exhaustive test" by "exact test".

@qbarthelemy qbarthelemy changed the title Improve code for compute_pvals_perm Improve compute_pvals_perm function Sep 27, 2025
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