Skip to content

Commit

Permalink
Apply Pareto's principle to the extent we simulate the reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
schneiderfelipe committed Dec 3, 2021
1 parent 554531c commit bde5bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overreact/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def get_y(
y0 = np.asarray(y0)

if t_span is None:
# We defined alpha such that 1.0 - alpha is an estimate of the extend
# to which the reaction is simulated.
alpha = 1e-31
# We defined alpha such that 1.0 - alpha is an (under)estimate of the extend
# to which the reaction is simulated. And then we apply the Pareto principle.
alpha = 0.2
n_halflives = np.ceil(-np.log(alpha) / np.log(2))

halflife_estimate = 1.0
Expand Down

0 comments on commit bde5bec

Please sign in to comment.