@@ -34,7 +34,7 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
3434 (iterated_first_order , {'num_iterations' :5 }), (iterated_first_order , [5 ], {'iterate' :True }),
3535 (second_order , {}),
3636 (fourth_order , {}),
37- (lineardiff , {'order' :3 , 'gamma' :5 , 'window_size' :11 , 'solver' :'CLARABEL' }), (lineardiff , [3 , 5 , 11 ], {'solver' :'CLARABEL' }),
37+ (lineardiff , {'order' :3 , 'gamma' :5 , 'window_size' :21 , 'solver' :'CLARABEL' }), (lineardiff , [3 , 5 , 21 ], {'solver' :'CLARABEL' }),
3838 (polydiff , {'polynomial_order' :2 , 'window_size' :3 }), (polydiff , [2 , 3 ]),
3939 (savgoldiff , {'polynomial_order' :2 , 'window_size' :4 , 'smoothing_win' :4 }), (savgoldiff , [2 , 4 , 4 ]),
4040 (spectraldiff , {'high_freq_cutoff' :0.1 }), (spectraldiff , [0.1 ]),
@@ -55,6 +55,7 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
5555 (smooth_acceleration , {'gamma' :2 , 'window_size' :5 }), (smooth_acceleration , [2 , 5 ]),
5656 (jerk_sliding , {'gamma' :1 , 'window_size' :15 }), (jerk_sliding , [1 ], {'window_size' :15 })
5757 ]
58+ #diff_methods_and_params = [(gaussiandiff, {'window_size':5})]
5859
5960# All the testing methodology follows the exact same pattern; the only thing that changes is the
6061# closeness to the right answer various methods achieve with the given parameterizations. So index a
@@ -66,7 +67,7 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
6667 [(- 25 , - 25 ), (1 , 0 ), (0 , 0 ), (1 , 1 )],
6768 [(- 25 , - 25 ), (2 , 2 ), (0 , 0 ), (2 , 2 )],
6869 [(- 25 , - 25 ), (3 , 3 ), (0 , 0 ), (3 , 3 )]],
69- iterated_first_order : [[(- 8 , - 9 ), (- 25 , - 25 ), (0 , 0 ), (1 , 1 )],
70+ iterated_first_order : [[(- 8 , - 9 ), (- 9 , - 9 ), (0 , 0 ), (1 , 1 )],
7071 [(- 6 , - 6 ), (- 6 , - 7 ), (0 , 0 ), (1 , 1 )],
7172 [(1 , 0 ), (1 , 0 ), (1 , 1 ), (1 , 1 )],
7273 [(1 , 0 ), (1 , 1 ), (1 , 0 ), (1 , 1 )],
@@ -84,11 +85,11 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
8485 [(- 25 , - 25 ), (- 2 , - 2 ), (0 , 0 ), (1 , 1 )],
8586 [(- 25 , - 25 ), (1 , 0 ), (0 , 0 ), (1 , 1 )],
8687 [(- 25 , - 25 ), (2 , 2 ), (0 , 0 ), (2 , 2 )]],
87- lineardiff : [[(- 6 , - 6 ), (- 5 , - 6 ), (0 , - 1 ), (0 , 0 )],
88- [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
89- [(1 , 0 ), (2 , 2 ), (1 , 0 ), (2 , 2 )],
88+ lineardiff : [[(- 6 , - 7 ), (- 6 , - 6 ), (- 1 , - 1 ), (0 , 0 )],
9089 [(1 , 0 ), (2 , 1 ), (1 , 0 ), (2 , 1 )],
9190 [(1 , 1 ), (2 , 2 ), (1 , 1 ), (2 , 2 )],
91+ [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
92+ [(1 , 1 ), (2 , 2 ), (1 , 1 ), (2 , 2 )],
9293 [(1 , 1 ), (3 , 3 ), (1 , 1 ), (3 , 3 )]],
9394 polydiff : [[(- 14 , - 15 ), (- 14 , - 14 ), (0 , - 1 ), (1 , 1 )],
9495 [(- 14 , - 14 ), (- 13 , - 13 ), (0 , - 1 ), (1 , 1 )],
@@ -115,19 +116,19 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
115116 [(0 , 0 ), (2 , 2 ), (0 , 0 ), (2 , 2 )],
116117 [(1 , 1 ), (3 , 3 ), (1 , 1 ), (3 , 3 )]],
117118 meandiff : [[(- 25 , - 25 ), (- 25 , - 25 ), (0 , - 1 ), (0 , 0 )],
118- [(0 , 0 ), (1 , 0 ), (0 , 0 ), (1 , 1 )],
119+ [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
119120 [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
120121 [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
121122 [(1 , 1 ), (2 , 2 ), (1 , 1 ), (2 , 2 )],
122123 [(1 , 1 ), (3 , 3 ), (1 , 1 ), (3 , 3 )]],
123124 gaussiandiff : [[(- 14 , - 15 ), (- 14 , - 14 ), (0 , - 1 ), (1 , 0 )],
124- [(- 1 , - 1 ), (0 , 0 ), (0 , 0 ), (1 , 0 )],
125+ [(- 1 , - 1 ), (1 , 0 ), (0 , 0 ), (1 , 1 )],
125126 [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
126- [(0 , - 1 ), (1 , 0 ), (0 , 0 ), (1 , 1 )],
127+ [(0 , - 1 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
127128 [(1 , 1 ), (2 , 2 ), (1 , 1 ), (2 , 2 )],
128129 [(1 , 1 ), (3 , 3 ), (1 , 1 ), (3 , 3 )]],
129- friedrichsdiff : [[(- 25 , - 25 ), (- 25 , - 25 ), (0 , - 1 ), (0 , 0 )],
130- [(- 1 , - 1 ), (0 , 0 ), (0 , 0 ), (1 , 0 )],
130+ friedrichsdiff : [[(- 25 , - 25 ), (- 25 , - 25 ), (0 , - 1 ), (1 , 0 )],
131+ [(- 1 , - 1 ), (1 , 0 ), (0 , 0 ), (1 , 1 )],
131132 [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
132133 [(0 , - 1 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
133134 [(1 , 1 ), (2 , 2 ), (1 , 1 ), (2 , 2 )],
@@ -140,7 +141,7 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
140141 [(2 , 1 ), (3 , 3 ), (2 , 1 ), (3 , 3 )]],
141142 splinediff : [[(- 14 , - 15 ), (- 14 , - 14 ), (- 1 , - 1 ), (0 , 0 )],
142143 [(- 14 , - 14 ), (- 13 , - 14 ), (- 1 , - 1 ), (0 , 0 )],
143- [(- 14 , - 14 ), (0 , 0 ), (- 1 , - 1 ), (0 , 0 )],
144+ [(- 14 , - 14 ), (- 13 , - 13 ), (- 1 , - 1 ), (0 , 0 )],
144145 [(0 , 0 ), (1 , 1 ), (0 , 0 ), (1 , 1 )],
145146 [(1 , 0 ), (2 , 2 ), (1 , 0 ), (2 , 2 )],
146147 [(1 , 0 ), (3 , 3 ), (1 , 0 ), (3 , 3 )]],
0 commit comments