Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Vincent committed Jul 1, 2024
1 parent a9d86d4 commit 12fb18e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ lb = binom_ci(k, n, alpha, 'lb')

Find maximum expected shortage given miscoverage rate and number of samples:
```
from binomial_cis import max_expected_shortage
mes_ub, mes_lb, p_lb, num_iters = max_expected_shortage(alpha, n, tol=1e-3)
```

Expand All @@ -79,6 +81,8 @@ ub = binom_ci(k, n, alpha, 'ub')

Find maximum expected excess given miscoverage rate and number of samples:
```
from binomial_cis import max_expected_excess
mee_ub, mee_lb, p_lb, num_iters = max_expected_excess(alpha, n, tol=1e-3)
```

Expand All @@ -99,6 +103,8 @@ lb, ub = binom_ci(k, n, alpha, 'lb,ub')

Find maximum expected width given miscoverage rate and number of samples:
```
from binomial_cis import max_expected_width
mew_ub, mew_lb, p_lb, num_iters = max_expected_width(alpha, n, tol=1e-3)
```

Expand Down
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Find maximum expected shortage given miscoverage rate and number of samples:

.. code-block::
from binomial_cis import max_expected_shortage
mes_ub, mes_lb, p_lb, num_iters = max_expected_shortage(alpha, n, tol=1e-3)
Expand All @@ -75,6 +77,8 @@ Find maximum expected excess given miscoverage rate and number of samples:

.. code-block::
from binomial_cis import max_expected_excess
mee_ub, mee_lb, p_lb, num_iters = max_expected_excess(alpha, n, tol=1e-3)
Expand All @@ -100,6 +104,8 @@ Find maximum expected width given miscoverage rate and number of samples:

.. code-block::
from binomial_cis import max_expected_width
mew_ub, mew_lb, p_lb, num_iters = max_expected_width(alpha, n, tol=1e-3)
Expand Down

0 comments on commit 12fb18e

Please sign in to comment.