Skip to content

Commit b6376c6

Browse files
committed
Remove approximate_gamma_mom
1 parent d33db68 commit b6376c6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tsdate/approx.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,6 @@ def approximate_log_moments(mean, variance):
4747
return logx, xlogx, logx2
4848

4949

50-
@numba.njit("UniTuple(float64, 2)(float64, float64)")
51-
def approximate_gamma_mom(mean, variance):
52-
"""
53-
Use the method of moments to approximate a distribution with a gamma of the
54-
same mean and variance
55-
"""
56-
assert mean > 0
57-
assert variance > 0
58-
alpha = mean**2 / variance
59-
beta = mean / variance
60-
return alpha, beta
61-
62-
6350
@numba.njit("UniTuple(float64, 2)(float64, float64)")
6451
def approximate_gamma_kl(x, logx):
6552
"""

0 commit comments

Comments
 (0)