summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-05-19 21:42:16 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-05-19 21:42:16 +0000
commit399147b0b20e32bbb0af62db9bc1fe1100770063 (patch)
tree34bf4723406a98cd2ce602e8a59e47e1965fee28 /numpy/lib/function_base.py
parent7ee9981d88525a9b09df86643c15306e1e5f5e58 (diff)
downloadnumpy-399147b0b20e32bbb0af62db9bc1fe1100770063.tar.gz
Fix math markup in docstrings.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index ea1b867c8..d2bb47552 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1226,7 +1226,9 @@ def bartlett(M):
-----
The Bartlett window is defined as
- .. math:: w(n) = \\frac{2}{M-1} (\\frac{M-1}{2} - |n - \\frac{M-1}{2}|)
+ .. math:: w(n) = \\frac{2}{M-1} \left(
+ \\frac{M-1}{2} - \\left|n - \\frac{M-1}{2}\\right|
+ \\right)
Most references to the Bartlett window come from the signal
processing literature, where it is used as one of many windowing
@@ -1255,7 +1257,8 @@ def bartlett(M):
0.90909091, 0.90909091, 0.72727273, 0.54545455, 0.36363636,
0.18181818, 0. ])
- # Plot the window and the frequency response of it.
+ Plot the window and its frequency response:
+
>>> from numpy import clip, log10, array, bartlett
>>> from scipy.fftpack import fft
>>> from matplotlib import pyplot as plt