Skip to content

Commit

Permalink
corrected lnp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsexton2 committed Jan 23, 2024
1 parent 6ae2581 commit 4cb6f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basicrta/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def run(self):
lnp[j] = np.log(tmp.take(s)).sum()+\
np.log(mcweights[j][uniqs]).sum()-\
(mcrates[j][uniqs]*rhypers[uniqs, 1]).sum()+\
np.log(mcweights[j]**(whypers-1)).sum()
np.log(mcweights[j][uniqs]**(whypers[uniqs]-1)).sum()

Ns[j][:] = np.array([len(inds[i]) for i in range(ncomp)])
Ts = np.array([x[inds[i]].sum() for i in range(ncomp)])
Expand Down

0 comments on commit 4cb6f23

Please sign in to comment.