Skip to content

Commit 3c42a18

Browse files
authored
Fix print name of LogitNormal and DiscreteWeibull (#7935)
1 parent 5d4f98b commit 3c42a18

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pymc/distributions/continuous.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,11 @@ class ChiSquared:
25752575
----------
25762576
nu : tensor_like of float
25772577
Degrees of freedom (nu > 0).
2578+
2579+
Notes
2580+
-----
2581+
This is implemented as a special case of the Gamma distribution.
2582+
:math:`\chi^2(\nu) = \text{Gamma}(\alpha=\nu/2, \beta=1/2)`
25782583
"""
25792584

25802585
def __new__(cls, name, nu, **kwargs):
@@ -3601,7 +3606,7 @@ def icdf(value, mu, s):
36013606
class LogitNormalRV(SymbolicRandomVariable):
36023607
name = "logit_normal"
36033608
extended_signature = "[rng],[size],(),()->[rng],()"
3604-
_print_name = ("logitNormal", "\\operatorname{logitNormal}")
3609+
_print_name = ("LogitNormal", "\\operatorname{LogitNormal}")
36053610

36063611
@classmethod
36073612
def rv_op(cls, mu, sigma, *, size=None, rng=None):

pymc/distributions/discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def logcdf(value, p):
393393
class DiscreteWeibullRV(SymbolicRandomVariable):
394394
name = "discrete_weibull"
395395
extended_signature = "[rng],[size],(),()->[rng],()"
396-
_print_name = ("dWeibull", "\\operatorname{dWeibull}")
396+
_print_name = ("DiscreteWeibull", "\\operatorname{DiscreteWeibull}")
397397

398398
@classmethod
399399
def rv_op(cls, q, beta, *, size=None, rng=None):

0 commit comments

Comments
 (0)