spapprox 26.11.42__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
spapprox/__init__.py ADDED
@@ -0,0 +1,77 @@
1
+ """Saddle point approximations of distributions from their cumulant generating functions."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ from .cgf_base import (
6
+ MultivariateCumulantGeneratingFunction,
7
+ UnivariateCumulantGeneratingFunction,
8
+ )
9
+
10
+ from .cgfs import (
11
+ asymmetric_generalized_normal,
12
+ asymmetric_laplace,
13
+ bernoulli,
14
+ binomial,
15
+ bivariate_gamma,
16
+ bivariate_poisson,
17
+ chi2,
18
+ exponential,
19
+ gamma,
20
+ generalized_normal,
21
+ jensen_multivariate_gamma,
22
+ laplace,
23
+ multinomial,
24
+ multivariate_norm,
25
+ negative_binomial,
26
+ norm,
27
+ poisson,
28
+ univariate_empirical,
29
+ univariate_sample_mean,
30
+ )
31
+ from .domain import Domain
32
+ from .spa import (
33
+ BivariateSaddlePointApprox,
34
+ EstimatingEquationSaddlePointApprox,
35
+ MultivariateEstimatingEquationSaddlePointApprox,
36
+ MultivariateSaddlePointApprox,
37
+ UnivariateSaddlePointApprox,
38
+ UnivariateSaddlePointApproxMean,
39
+ )
40
+ from .util import Timer
41
+
42
+ try:
43
+ __version__ = version("spapprox")
44
+ except PackageNotFoundError: # pragma: no cover, e.g. running from a source tree
45
+ __version__ = "unknown"
46
+
47
+ __all__ = [
48
+ "asymmetric_generalized_normal",
49
+ "asymmetric_laplace",
50
+ "bernoulli",
51
+ "binomial",
52
+ "bivariate_gamma",
53
+ "bivariate_poisson",
54
+ "BivariateSaddlePointApprox",
55
+ "chi2",
56
+ "Domain",
57
+ "EstimatingEquationSaddlePointApprox",
58
+ "exponential",
59
+ "gamma",
60
+ "generalized_normal",
61
+ "jensen_multivariate_gamma",
62
+ "laplace",
63
+ "multinomial",
64
+ "multivariate_norm",
65
+ "MultivariateCumulantGeneratingFunction",
66
+ "MultivariateEstimatingEquationSaddlePointApprox",
67
+ "MultivariateSaddlePointApprox",
68
+ "negative_binomial",
69
+ "norm",
70
+ "poisson",
71
+ "Timer",
72
+ "univariate_empirical",
73
+ "univariate_sample_mean",
74
+ "UnivariateCumulantGeneratingFunction",
75
+ "UnivariateSaddlePointApprox",
76
+ "UnivariateSaddlePointApproxMean",
77
+ ]