summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-08-30 07:56:41 -0300
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-30 15:12:12 +0000
commit9186b39eea390dc0c24b21b3b4ba97df5b21ba8b (patch)
tree7c5a2e86d0fd23b50b456e961eb66c81c39054ef /gnu/packages/python-science.scm
parent92181868677d447e8e964f17b149234a261a39ed (diff)
gnu: Add python-numba-stats.
* gnu/packages/python-science.scm (python-numba-stats): New variable. Change-Id: Iff8181ec1c9341081c09afcaf4fbdc2d57b1ccec Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 49e44683ab8..f7168a7786b 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -2054,6 +2054,53 @@ MGH, geometry, annotation and morphometry files, and provides some limited
support for DICOM.")
(license license:expat))) ; and other non-copyleft licenses
+(define-public python-numba-stats
+ (package
+ (name "python-numba-stats")
+ (version "1.11.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "numba_stats" version))
+ (sha256
+ (base32 "1m5gwrc3liqydpix5ckyc7s5ysvgvinbznnkcvk2xjz13lwfy2s8"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-numba
+ python-numpy
+ python-scipy))
+ (home-page "https://github.com/scikit-hep/numba-stats")
+ (synopsis "Accelerated implementations of SciPy probability distributions")
+ (description
+ "This package provides Numba-accelerated implementations of common SciPy
+probability distributions and others used in particle physics.
+
+The supported distributions are:
+
+@itemize
+@item Uniform
+@item (Truncated) Normal
+@item Log-normal
+@item Poisson
+@item Binomial
+@item (Truncated) Exponential
+@item Student's t
+@item Voigtian
+@item Crystal Ball
+@item Generalised double-sided Crystal Ball
+@item Tsallis-Hagedorn, a model for the minimum bias pT distribution
+@item Q-Gaussian
+@item Bernstein density (not normalized to unity)
+@item Cruijff density (not normalized to unity)
+@item CMS-Shape
+@item Generalized Argus
+@end itemize")
+ (license license:expat)))
+
(define-public python-numdifftools
(package
(name "python-numdifftools")