Commit 829c54e7 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix some documentation typos.

parent af502694
......@@ -73,7 +73,7 @@ or played below if your browser supports WebM.
.. raw:: html
<div style="text-align:center">
<video id="sirs" src="../_downloads/sirs.webm" controls></video>
<video id="sirs" src="../../_downloads/sirs.webm" controls></video>
</div>
......@@ -100,7 +100,7 @@ Properly modifying the script above would lead to the following
.. raw:: html
<div style="text-align:center">
<video id="sirs" src="../_downloads/zombie.webm" controls></video>
<video id="sirs" src="../../_downloads/zombie.webm" controls></video>
</div>
The modified script can be downloaded :download:`here <animation_zombies.py>`.
......@@ -174,7 +174,7 @@ The resulting animation can be downloaded :download:`here
.. raw:: html
<div style="text-align:center">
<video id="sirs" src="../_downloads/dancing.webm" controls></video>
<video id="sirs" src="../../_downloads/dancing.webm" controls></video>
</div>
Interactive visualizations
......@@ -228,5 +228,5 @@ The resulting animation can be downloaded :download:`here
.. raw:: html
<div style="text-align:center">
<video id="sirs" src="../_downloads/bfs.webm" controls></video>
<video id="sirs" src="../../_downloads/bfs.webm" controls></video>
</div>
......@@ -132,7 +132,7 @@ def bisection_minimize(init_states, random_bisection=False,
.. [peixoto-efficient-2014] Tiago P. Peixoto, "Efficient Monte Carlo and
greedy heuristic for the inference of stochastic block models", Phys.
Rev. E 89, 012804 (2014), :doi:`10.1103/PhysRevE.89.012804`,
:arxiv:` 1310.4378`
:arxiv:`1310.4378`
"""
b_cache = {}
......
......@@ -1394,6 +1394,7 @@ def bethe_entropy(g, B, p):
----------
.. [mezard-information-2009] Marc Mézard, Andrea Montanari, "Information,
Physics, and Computation", Oxford Univ Press, 2009.
:DOI:`10.1093/acprof:oso/9780198570837.001.0001`
"""
H = 0
pv = g.new_vertex_property("vector<double>")
......@@ -1436,7 +1437,7 @@ def mf_entropy(g, p):
----------
.. [mezard-information-2009] Marc Mézard, Andrea Montanari, "Information,
Physics, and Computation", Oxford Univ Press, 2009.
:DOI:`10.1093/acprof:oso/9780198570837.001.0001`
"""
H = 0
for v in g.vertices():
......
......@@ -467,7 +467,7 @@ def multicanonical_equilibrate(state, m_state, f_range=(1., 1e-6), r=2,
Range of density updates.
r : ``float`` (optional, default: ``2.``)
Greediness of convergence. At each iteration, the density updates will
be reduced reduced by a factor ``r``.
be reduced by a factor ``r``.
flatness : ``float`` (optional, default: ``1e-3``)
Sufficient histogram flatness threshold used to continue the algorithm.
callback : ``function`` (optional, default: ``None``)
......@@ -489,7 +489,7 @@ def multicanonical_equilibrate(state, m_state, f_range=(1., 1e-6), r=2,
.. [wang-efficient-2001] Fugao Wang, D. P. Landau, "An efficient, multiple
range random walk algorithm to calculate the density of states", Phys.
Rev. Lett. 86, 2050 (2001), :doi:`10.1103/PhysRevLett.86.2050`,
:arxiv:`cond-mat/0011174'
:arxiv:`cond-mat/0011174`
"""
f = f_range[0]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment