Skip to content

Commit

Permalink
Merge pull request #454 from QuantEcon/update-docs
Browse files Browse the repository at this point in the history
Update Documentation
  • Loading branch information
mmcky authored Dec 13, 2018
2 parents ab0c261 + c003191 commit c6ea72f
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Makefile for Sphinx documentation
# Makefile for Sphinx documentation
#

# You can set these variables from the command line.
Expand Down
1 change: 1 addition & 0 deletions docs/source/game_theory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Game theory
game_theory/normal_form_game
game_theory/pure_nash
game_theory/random
game_theory/repeated_game
game_theory/support_enumeration
game_theory/utilities
game_theory/vertex_enumeration
Expand Down
7 changes: 7 additions & 0 deletions docs/source/game_theory/repeated_game.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repeated_game
=============

.. automodule:: quantecon.game_theory.repeated_game
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/optimize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Optimize
.. toctree::
:maxdepth: 2

optimize/nelder_mead
optimize/root_finding
optimize/scalar_maximization
7 changes: 7 additions & 0 deletions docs/source/optimize/nelder_mead.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nelder_mead
===========

.. automodule:: quantecon.optimize.nelder_mead
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Tools
tools/filter
tools/graph_tools
tools/gridtools
tools/inequality
tools/ivp
tools/kalman
tools/lae
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Inquality
inequality
==========

.. automodule:: quantecon.inquality
.. automodule:: quantecon.inequality
:members:
:undoc-members:
:show-inheritance:
14 changes: 7 additions & 7 deletions quantecon/inequality.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def lorenz_curve(y):
References
----------
https://en.wikipedia.org/wiki/Lorenz_curve
.. [1] https://en.wikipedia.org/wiki/Lorenz_curve
Examples
--------
Expand Down Expand Up @@ -85,7 +85,7 @@ def gini_coefficient(y):


def shorrocks_index(A):
"""
r"""
Implements Shorrocks mobility index
Parameters
Expand All @@ -100,16 +100,16 @@ def shorrocks_index(A):
The Shorrocks mobility index calculated as
.. math::
s(A) = \frac{m - \sum_j a_{jj}}{m - 1} \in (0, 1)
s(A) = \frac{m - \sum_j a_{jj} }{m - 1} \in (0, 1)
An index equal to 0 indicates complete immobility.
References
-----------
Wealth distribution and social mobility in the US: A quantitative approach
(Benhabib, Bisin, Luo, 2017).
https://www.econ.nyu.edu/user/bisina/RevisionAugust.pdf
.. [1] Wealth distribution and social mobility in the US: A quantitative approach
(Benhabib, Bisin, Luo, 2017).
https://www.econ.nyu.edu/user/bisina/RevisionAugust.pdf
"""

A = np.asarray(A) # Convert to array if not already
Expand Down
3 changes: 1 addition & 2 deletions quantecon/optimize/nelder_mead.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def nelder_mead(fun, x0, bounds=np.array([[], []]).T, args=(), tol_f=1e-10,
Parameters
----------
fun : callable
The objective function to be maximized.
`fun(x, *args) -> float`
The objective function to be maximized: `fun(x, *args) -> float`
where x is an 1-D array with shape (n,) and args is a tuple of the
fixed parameters needed to completely specify the function. This
function must be JIT-compiled in `nopython` mode using Numba.
Expand Down

0 comments on commit c6ea72f

Please sign in to comment.