Metadata-Version: 2.4
Name: hamstest-adapter-mannwhitneyu
Version: 0.1.0
Summary: Native C++ adapter for hamstest Mann-Whitney U permutation tests
Author: Nikita Golikov, Vladimir Sukhov, Gennady Korotkevich
Author-email: Alexey Sergushichev <alsergbox@gmail.com>
Maintainer-email: Alexey Sergushichev <alsergbox@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/golikov-nik/hamstest
Project-URL: Repository, https://github.com/golikov-nik/hamstest/tree/main/hamstest_adapter_mannwhitneyu
Project-URL: Issues, https://github.com/golikov-nik/hamstest/issues
Keywords: mann-whitney-u,permutation-test,p-value,statistics,hamstest
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: hamstest<0.2.0,>=0.1.0
Dynamic: license-file
Dynamic: requires-python

# hamstest-adapter-mannwhitneyu

Native C++ adapter for `hamstest.permutation_tests.mannwhitneyutest.MannWhitneyUTest`.

## Installation

```bash
pip install hamstest-adapter-mannwhitneyu
```

The package depends on `hamstest>=0.1.0,<0.2.0`. When installed, importing
`hamstest.permutation_tests.mannwhitneyutest.MannWhitneyUTest` registers this
adapter and lets `hamstest` use the native fast path automatically.

## Usage

```python
from hamstest import Estimator
from hamstest.permutation_tests.mannwhitneyutest import MannWhitneyUTest

n, m = 20, 30
ranks = list(range(n + m))
test = MannWhitneyUTest(n, m, ranks)
estimator = Estimator(test, sample_size=101, seed=0)
log_pvalue, log_pvalue_stderr = estimator.estimate(735)
```

If the adapter is not installed or cannot be loaded, `hamstest` falls back to
the pure Python implementation.

## Project

Source code and issue tracking are available at
https://github.com/golikov-nik/hamstest.
