diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-29 15:01:31 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:19:48 +0100 |
| commit | bd1885af17778116fe22fd78c4f87cbe2001afec (patch) | |
| tree | 97311657f6f5c417e4270cb05d4da2a14a6e1e2a /gnu | |
| parent | 9d660798bd5af0b8fed6ab28e4675e5f4bde400f (diff) | |
gnu: Add python-diptest.
* gnu/packages/statistics.scm (python-diptest): New variable.
Change-Id: I7104617dfb182b85494febe2a483c7681cdb5929
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/statistics.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index a8065f6ef5b..592d43b12d8 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -709,6 +709,43 @@ covariance @url{https://github.com/vnmabus/dcor#sr14,[SR14]} @end itemize") (license license:expat))) +(define-public python-diptest + (package + (name "python-diptest") + (version "0.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/RUrlus/diptest") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j35v849yx6bq9w4bvlgbw9b2g3f1zlqxf63vv257dfx5qsa5x62")))) + (build-system pyproject-build-system) + (native-inputs + (list cmake-minimal ;TODO: propagate from python-scikit-build-core + pybind11 + python-pytest + python-scikit-build-core)) + (propagated-inputs + (list python-numpy + python-psutil)) + (home-page "https://github.com/RUrlus/diptest") + (synopsis "Hartigan's diptest") + (description + "This package provides a Python/C(++) implementation of +@url{https://www.jstor.org/stable/2241144, Hartigan & Hartigan's dip test} for +unimodality. + +The dip test measures multimodality in a sample by the maximum difference, +over all sample points, between the empirical distribution function, and the +unimodal distribution function that minimizes that maximum difference. Other +than unimodality, it makes no further assumptions about the form of the null +distribution.") + (license (list license:gpl2+ ;in pyproject.toml + license:gpl3)))) ;in LICENSE + (define-public python-dynesty (package (name "python-dynesty") |
