Skip to content

Commit

Permalink
changed bins in estimate_tau
Browse files Browse the repository at this point in the history
  • Loading branch information
rsexton2 committed Sep 18, 2024
1 parent bcde068 commit 627919f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions basicrta/gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,9 @@ def estimate_tau(self):
taus = 1 / rp.rates[rp.labels == index]
ci = confidence_interval(taus)
citaus = taus[(taus > ci[0]) & (taus < ci[1])]
bins = np.exp(np.linspace(np.log(citaus.min()), np.log(citaus.max()),
20))
#bins = np.exp(np.linspace(np.log(citaus.min()), np.log(citaus.max()),
# 20))
bins = 15
h = np.histogram(taus, bins=bins)
indmax = h[0].argmax()
val = 0.5 * (h[1][:-1][indmax] + h[1][1:][indmax])[0]
Expand Down

0 comments on commit 627919f

Please sign in to comment.