Skip to content

Commit cfcfa05

Browse files
committed
only Caucy and Logistic - saving lognormal for another PR - fix whitespace
1 parent e00407c commit cfcfa05

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pymc/distributions/continuous.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,14 +2037,14 @@ def logcdf(value, alpha, beta):
20372037
beta > 0,
20382038
msg="beta > 0",
20392039
)
2040-
2040+
20412041
def icdf(value, alpha, beta):
2042-
res = alpha + beta * pt.tan(np.pi * (value-0.5))
2042+
res = alpha + beta * pt.tan(np.pi * (value - 0.5))
20432043
res = check_icdf_value(res, value)
20442044
return check_parameters(
2045-
res,
2046-
beta > 0,
2047-
msg="beta > 0",
2045+
res,
2046+
beta > 0,
2047+
msg="beta > 0",
20482048
)
20492049

20502050

@@ -3358,15 +3358,15 @@ def logp(value, mu, s):
33583358

33593359
def logcdf(value, mu, s):
33603360
res = -pt.log1pexp(-(value - mu) / s)
3361-
3361+
33623362
return check_parameters(
33633363
res,
33643364
s > 0,
33653365
msg="s > 0",
33663366
)
3367-
3367+
33683368
def icdf(value, mu, s):
3369-
res = mu + s * pt.log(value/(1 - value))
3369+
res = mu + s * pt.log(value / (1 - value))
33703370
res = check_icdf_value(res, value)
33713371
return check_parameters(
33723372
res,

0 commit comments

Comments
 (0)