Metadata-Version: 2.4
Name: hamstest-adapter-ks
Version: 0.1.0
Summary: Native C++ adapter for hamstest Kolmogorov-Smirnov 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_ks
Project-URL: Issues, https://github.com/golikov-nik/hamstest/issues
Keywords: kolmogorov-smirnov,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-ks

Native C++ adapter for `hamstest.permutation_tests.kstest.KSTest`.

## Installation

```bash
pip install hamstest-adapter-ks
```

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

## Usage

```python
from hamstest import Estimator
from hamstest.permutation_tests.kstest import KSTest

test = KSTest(100, 900)
estimator = Estimator(test, sample_size=101, seed=0)
log_pvalue, log_pvalue_stderr = estimator.estimate(30000)
```

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.
