@@ -74,13 +74,15 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Abstrac
74
74
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
75
75
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
76
76
cache_parameters:: Bool = false )
77
- extrapolation_left, extrapolation_right = munge_extrapolation (
77
+ extrapolation_left,
78
+ extrapolation_right = munge_extrapolation (
78
79
extrapolation, extrapolation_left, extrapolation_right)
79
80
u, t = munge_data (u, t; check_sorted = t̂, sorted_arg_name = (" third" , " t̂" ))
80
81
M = _mapping_matrix (t̂, t)
81
82
Wls½ = LA. diagm (sqrt .(wls))
82
83
Wr½ = LA. diagm (sqrt .(wr))
83
- û, λ, Aitp = _reg_smooth_solve (
84
+ û, λ,
85
+ Aitp = _reg_smooth_solve (
84
86
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
85
87
extrapolation_right, cache_parameters)
86
88
RegularizationSmooth (
@@ -100,15 +102,17 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, d::Int = 2;
100
102
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
101
103
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
102
104
cache_parameters:: Bool = false )
103
- extrapolation_left, extrapolation_right = munge_extrapolation (
105
+ extrapolation_left,
106
+ extrapolation_right = munge_extrapolation (
104
107
extrapolation, extrapolation_left, extrapolation_right)
105
108
u, t = munge_data (u, t)
106
109
t̂ = t
107
110
N = length (t)
108
111
M = Array {Float64} (LA. I, N, N)
109
112
Wls½ = Array {Float64} (LA. I, N, N)
110
113
Wr½ = Array {Float64} (LA. I, N - d, N - d)
111
- û, λ, Aitp = _reg_smooth_solve (
114
+ û, λ,
115
+ Aitp = _reg_smooth_solve (
112
116
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
113
117
extrapolation_right, cache_parameters)
114
118
RegularizationSmooth (u,
@@ -137,14 +141,16 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Abstrac
137
141
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
138
142
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
139
143
cache_parameters:: Bool = false )
140
- extrapolation_left, extrapolation_right = munge_extrapolation (
144
+ extrapolation_left,
145
+ extrapolation_right = munge_extrapolation (
141
146
extrapolation, extrapolation_left, extrapolation_right)
142
147
u, t = munge_data (u, t; check_sorted = t̂, sorted_arg_name = (" third" , " t̂" ))
143
148
N, N̂ = length (t), length (t̂)
144
149
M = _mapping_matrix (t̂, t)
145
150
Wls½ = Array {Float64} (LA. I, N, N)
146
151
Wr½ = Array {Float64} (LA. I, N̂ - d, N̂ - d)
147
- û, λ, Aitp = _reg_smooth_solve (
152
+ û, λ,
153
+ Aitp = _reg_smooth_solve (
148
154
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
149
155
extrapolation_right, cache_parameters)
150
156
RegularizationSmooth (u,
@@ -174,14 +180,16 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Abstrac
174
180
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
175
181
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
176
182
cache_parameters:: Bool = false )
177
- extrapolation_left, extrapolation_right = munge_extrapolation (
183
+ extrapolation_left,
184
+ extrapolation_right = munge_extrapolation (
178
185
extrapolation, extrapolation_left, extrapolation_right)
179
186
u, t = munge_data (u, t; check_sorted = t̂, sorted_arg_name = (" third" , " t̂" ))
180
187
N, N̂ = length (t), length (t̂)
181
188
M = _mapping_matrix (t̂, t)
182
189
Wls½ = LA. diagm (sqrt .(wls))
183
190
Wr½ = Array {Float64} (LA. I, N̂ - d, N̂ - d)
184
- û, λ, Aitp = _reg_smooth_solve (
191
+ û, λ,
192
+ Aitp = _reg_smooth_solve (
185
193
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
186
194
extrapolation_right, cache_parameters)
187
195
RegularizationSmooth (u,
@@ -212,15 +220,17 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Nothing
212
220
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
213
221
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
214
222
cache_parameters:: Bool = false )
215
- extrapolation_left, extrapolation_right = munge_extrapolation (
223
+ extrapolation_left,
224
+ extrapolation_right = munge_extrapolation (
216
225
extrapolation, extrapolation_left, extrapolation_right)
217
226
u, t = munge_data (u, t)
218
227
t̂ = t
219
228
N = length (t)
220
229
M = Array {Float64} (LA. I, N, N)
221
230
Wls½ = LA. diagm (sqrt .(wls))
222
231
Wr½ = Array {Float64} (LA. I, N - d, N - d)
223
- û, λ, Aitp = _reg_smooth_solve (
232
+ û, λ,
233
+ Aitp = _reg_smooth_solve (
224
234
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
225
235
extrapolation_right, cache_parameters)
226
236
RegularizationSmooth (u,
@@ -251,15 +261,17 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Nothing
251
261
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
252
262
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
253
263
cache_parameters:: Bool = false )
254
- extrapolation_left, extrapolation_right = munge_extrapolation (
264
+ extrapolation_left,
265
+ extrapolation_right = munge_extrapolation (
255
266
extrapolation, extrapolation_left, extrapolation_right)
256
267
u, t = munge_data (u, t)
257
268
t̂ = t
258
269
N = length (t)
259
270
M = Array {Float64} (LA. I, N, N)
260
271
Wls½ = LA. diagm (sqrt .(wls))
261
272
Wr½ = LA. diagm (sqrt .(wr))
262
- û, λ, Aitp = _reg_smooth_solve (
273
+ û, λ,
274
+ Aitp = _reg_smooth_solve (
263
275
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
264
276
extrapolation_right, cache_parameters)
265
277
RegularizationSmooth (u,
@@ -289,7 +301,8 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Nothing
289
301
extrapolation_left:: ExtrapolationType.T = ExtrapolationType. None,
290
302
extrapolation_right:: ExtrapolationType.T = ExtrapolationType. None,
291
303
cache_parameters:: Bool = false )
292
- extrapolation_left, extrapolation_right = munge_extrapolation (
304
+ extrapolation_left,
305
+ extrapolation_right = munge_extrapolation (
293
306
extrapolation, extrapolation_left, extrapolation_right)
294
307
u, t = munge_data (u, t)
295
308
t̂ = t
@@ -298,7 +311,8 @@ function RegularizationSmooth(u::AbstractVector, t::AbstractVector, t̂::Nothing
298
311
wls, wr = _weighting_by_kw (t, d, wls)
299
312
Wls½ = LA. diagm (sqrt .(wls))
300
313
Wr½ = LA. diagm (sqrt .(wr))
301
- û, λ, Aitp = _reg_smooth_solve (
314
+ û, λ,
315
+ Aitp = _reg_smooth_solve (
302
316
u, t̂, d, M, Wls½, Wr½, λ, alg, extrapolation_left,
303
317
extrapolation_right, cache_parameters)
304
318
RegularizationSmooth (u,
0 commit comments