Skip to content

Commit 7f826c8

Browse files
committed
updated doc source to reflect changes on this branch
1 parent 7b5eaee commit 7f826c8

9 files changed

Lines changed: 12 additions & 62 deletions

docs/source/optimize.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
optimize
22
=========
33

4-
.. toctree::
5-
:maxdepth: 1
6-
7-
optimize/__optimize__
8-
optimize/__finite_difference__
9-
optimize/__kalman_smooth__
10-
optimize/__linear_model__
11-
optimize/__smooth_finite_difference__
12-
optimize/__total_variation_regularization__
4+
.. automodule:: pynumdiff.optimize
5+
:members:

docs/source/optimize/__finite_difference__.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/optimize/__kalman_smooth__.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/optimize/__linear_model__.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/optimize/__optimize__.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/optimize/__smooth_finite_difference__.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/optimize/__total_variation_regularization__.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/utils.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ utils
44
.. toctree::
55
:maxdepth: 1
66

7-
utils/_pi_cruise_control
87
utils/evaluate
98
utils/simulate
109
utils/utility

pynumdiff/utils/utility.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ def hankel_matrix(x, num_delays, pad=False): # fixed delay step of 1
88
:param np.array[float] x: data
99
:param int num_delays: number of times to 1-step shift data
1010
:param bool pad: if True, return width is len(x), else width is len(x) - num_delays + 1
11-
:return: a Hankel Matrix m
12-
e.g. if x = [a, b, c, d, e] and num_delays = 3
13-
then with pad = False:
14-
m = [['a', 'b', 'c'],
15-
['b', 'c', 'd'],
16-
['c', 'd', 'e']]
17-
or pad = True:
18-
m = [['a', 'b', 'c', 'd', 'e'],
19-
['b', 'c', 'd', 'e', 0],
20-
['c', 'd', 'e', 0, 0]]
11+
12+
:return: a Hankel Matrix `m`. For example, if `x = [a, b, c, d, e]` and `num_delays = 3`:\n
13+
With `pad = False`::\n
14+
m = [[a, b, c],
15+
[b, c, d],
16+
[c, d, e]]\n
17+
With `pad = True`::\n
18+
m = [[a, b, c, d, e],
19+
[b, c, d, e, 0],
20+
[c, d, e, 0, 0]]
2121
"""
2222
m = x.copy()
2323
for d in range(1, num_delays):

0 commit comments

Comments
 (0)