Skip to content

Commit 40b460f

Browse files
committed
moved kalman module, to complete all 5
1 parent 0ce0922 commit 40b460f

3 files changed

Lines changed: 9 additions & 126 deletions

File tree

pynumdiff/optimize/_optimize.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,24 @@
6767
'gamma': [1e-2, 1e-1, 1, 10, 100, 1000],
6868
'scale': 'small'},
6969
{'num_iterations': (1, 100), # gets expensive with more iterations
70-
'gamma': (1e-4, 1e7)})
70+
'gamma': (1e-4, 1e7)}),
7171
smooth_acceleration: ({'gamma': [1e-2, 1e-1, 1, 10, 100, 1000],
7272
'window_size': [3, 10, 30, 50, 90, 130]},
7373
{'gamma': (1e-4, 1e7),
74-
'window_size': (1, 1000)})
75-
# jerk_sliding:
76-
# constant_velocity:
77-
# constant_acceleration:
78-
# constant_jerk:
74+
'window_size': (1, 1000)}),
75+
constant_velocity: ({'forwardbackward': [True, False],
76+
'q': [1e-8, 1e-4, 1e-1, 1e1, 1e4, 1e8],
77+
'r': [1e-8, 1e-4, 1e-1, 1e1, 1e4, 1e8]},
78+
{'q': (1e-10, 1e10),
79+
'r': (1e-10, 1e10)})
7980
}
8081
for method in [meandiff, gaussiandiff, friedrichsdiff]:
8182
method_params_and_bounds[method] = method_params_and_bounds[mediandiff]
8283
for method in [acceleration, jerk]:
8384
method_params_and_bounds[method] = method_params_and_bounds[velocity]
8485
method_params_and_bounds[jerk_sliding] = method_params_and_bounds[smooth_acceleration]
86+
for method in [constant_acceleration, constant_jerk]:
87+
method_params_and_bounds[method] = method_params_and_bounds[constant_velocity]
8588

8689

8790
# This function to be at the top level for multiprocessing

pynumdiff/optimize/kalman_smooth/__init__.py

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

pynumdiff/optimize/kalman_smooth/__kalman_smooth__.py

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

0 commit comments

Comments
 (0)