1 | Test RecordInterface
|
---|
2 | ---------------------------------------------------
|
---|
3 | toRecord
|
---|
4 | fromRecord
|
---|
5 |
|
---|
6 | Test SpectralEstimate
|
---|
7 | ---------------------------------------------------
|
---|
8 | Made spectrum with components:
|
---|
9 | GAUSSIAN element:
|
---|
10 | Amplitude: 5, 0
|
---|
11 | Center: 45, 0
|
---|
12 | Sigma: 1.1, 0
|
---|
13 |
|
---|
14 | GAUSSIAN element:
|
---|
15 | Amplitude: 4, 0
|
---|
16 | Center: 50, 0
|
---|
17 | Sigma: 1.1, 0
|
---|
18 |
|
---|
19 | GAUSSIAN element:
|
---|
20 | Amplitude: 6, 0
|
---|
21 | Center: 55, 0
|
---|
22 | Sigma: 1.1, 0
|
---|
23 |
|
---|
24 | *** n 100
|
---|
25 | *** y [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.09099e-40, 3.34739e-35, 2.34499e-30, 7.18876e-26, 9.64375e-22, 5.66131e-18, 1.45434e-14, 1.63492e-11, 8.04274e-09, 1.73137e-06, 0.000163101, 0.00672359, 0.12129, 0.957476, 3.30757, 5.00013, 3.31295, 1.05451, 0.887271, 2.65278, 4.00036, 2.65413, 0.911529, 1.246, 3.97447, 6.00013, 3.96909, 1.14897, 0.145548, 0.00806831, 0.000195721, 2.07765e-06, 9.65129e-09, 1.9619e-11, 1.74521e-14, 6.79357e-18, 1.15725e-21, 8.62651e-26, 2.81398e-30, 4.01687e-35, 2.50918e-40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
---|
26 | Found (using rms, cutoff, minsig, q): (0.5, 1, 0.5, 2) 3 estimates
|
---|
27 | Estimate 0: GAUSSIAN element:
|
---|
28 | Amplitude: 6.00013, 0
|
---|
29 | Center: 55.0715, 0
|
---|
30 | Sigma: 1.33398, 0
|
---|
31 |
|
---|
32 | Estimate 1: GAUSSIAN element:
|
---|
33 | Amplitude: 5.00013, 0
|
---|
34 | Center: 44.9152, 0
|
---|
35 | Sigma: 1.32309, 0
|
---|
36 |
|
---|
37 | Estimate 2: GAUSSIAN element:
|
---|
38 | Amplitude: 4.00036, 0
|
---|
39 | Center: 50.0043, 0
|
---|
40 | Sigma: 1.26335, 0
|
---|
41 |
|
---|
42 | *** res [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.09099e-40, 3.34739e-35, 2.34499e-30, 7.18876e-26, 9.64375e-22, 5.66131e-18, 1.45434e-14, 1.63492e-11, 8.04274e-09, 1.73137e-06, 0.000163101, 0.00672359, 0.12129, 0.957476, 3.30757, 5.00013, 3.31295, 1.05451, 0.887271, 2.65278, 4.00036, 2.65413, 0.911529, 1.246, 3.97447, 6.00013, 3.96909, 1.14897, 0.145548, 0.00806831, 0.000195721, 2.07765e-06, 9.65129e-09, 1.9619e-11, 1.74521e-14, 6.79357e-18, 1.15725e-21, 8.62651e-26, 2.81398e-30, 4.01687e-35, 2.50918e-40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
---|
43 | Minimum, Maximum residuals: -0.961305, 0.0086807
|
---|
44 | Window (using rms, cutoff, minsig, q): (0.5, 1, 0.5, 2) 0 estimates
|
---|
45 | Found (using rms, cutoff, minsig, q): (0.5, 1, 0.5, 1) 3 estimates
|
---|
46 | Estimate 0: GAUSSIAN element:
|
---|
47 | Amplitude: 6.00013, 0
|
---|
48 | Center: 54.9829, 0
|
---|
49 | Sigma: 1.17129, 0
|
---|
50 |
|
---|
51 | Estimate 1: GAUSSIAN element:
|
---|
52 | Amplitude: 5.00013, 0
|
---|
53 | Center: 45.0202, 0
|
---|
54 | Sigma: 1.17355, 0
|
---|
55 |
|
---|
56 | Estimate 2: GAUSSIAN element:
|
---|
57 | Amplitude: 4.00036, 0
|
---|
58 | Center: 50.0182, 0
|
---|
59 | Sigma: 1.38534, 0
|
---|
60 |
|
---|
61 | Found (using rms, cutoff, minsig, q): (0, 0, 0, 1) 3 estimates
|
---|
62 | Estimate 0: GAUSSIAN element:
|
---|
63 | Amplitude: 6.00013, 0
|
---|
64 | Center: 54.9829, 0
|
---|
65 | Sigma: 1.17129, 0
|
---|
66 |
|
---|
67 | Estimate 1: GAUSSIAN element:
|
---|
68 | Amplitude: 5.00013, 0
|
---|
69 | Center: 45.0202, 0
|
---|
70 | Sigma: 1.17355, 0
|
---|
71 |
|
---|
72 | Estimate 2: GAUSSIAN element:
|
---|
73 | Amplitude: 4.00036, 0
|
---|
74 | Center: 50.0182, 0
|
---|
75 | Sigma: 1.38534, 0
|
---|
76 |
|
---|
77 | Found (using rms, cutoff, minsig, q): (0, 0, 0, 2) 3 estimates
|
---|
78 | Estimate 0: GAUSSIAN element:
|
---|
79 | Amplitude: 6.00013, 0
|
---|
80 | Center: 55.0715, 0
|
---|
81 | Sigma: 1.33398, 0
|
---|
82 |
|
---|
83 | Estimate 1: GAUSSIAN element:
|
---|
84 | Amplitude: 5.00013, 0
|
---|
85 | Center: 44.9152, 0
|
---|
86 | Sigma: 1.32309, 0
|
---|
87 |
|
---|
88 | Estimate 2: GAUSSIAN element:
|
---|
89 | Amplitude: 4.00036, 0
|
---|
90 | Center: 50.0043, 0
|
---|
91 | Sigma: 1.26335, 0
|
---|
92 |
|
---|
93 | Test SpectralFit
|
---|
94 | ---------------------------------------------------
|
---|
95 | Spectral elements:
|
---|
96 | GAUSSIAN element:
|
---|
97 | Amplitude: 1, 0
|
---|
98 | Center: 1402.5, 0
|
---|
99 | Sigma: 0.0195312, 0
|
---|
100 |
|
---|
101 | GAUSSIAN element:
|
---|
102 | Amplitude: 2.5, 0
|
---|
103 | Center: 1405, 0
|
---|
104 | Sigma: 0.0390625, 0
|
---|
105 |
|
---|
106 | GAUSSIAN element:
|
---|
107 | Amplitude: 0.5, 0
|
---|
108 | Center: 1407.5, 0
|
---|
109 | Sigma: 0.078125, 0
|
---|
110 |
|
---|
111 | GAUSSIAN element:
|
---|
112 | Amplitude: 5, 0
|
---|
113 | Center: 1403, 0
|
---|
114 | Sigma: 0.0292969, 0
|
---|
115 |
|
---|
116 | ---------------------------------------------------
|
---|
117 | Data for frequencies 1402.93 - 1403.08
|
---|
118 | 1402.93: 0.219133
|
---|
119 | 1402.94: -0.480645
|
---|
120 | 1402.95: -0.281389
|
---|
121 | 1402.96: 0.0423511
|
---|
122 | 1402.97: 0.0837382
|
---|
123 | 1402.98: 1.05514
|
---|
124 | 1402.99: 3.14053
|
---|
125 | 1403: 4.93017
|
---|
126 | 1403.01: 4.53475
|
---|
127 | 1403.02: 1.54477
|
---|
128 | 1403.03: 0.247699
|
---|
129 | 1403.04: -0.50962
|
---|
130 | 1403.05: 0.0446798
|
---|
131 | 1403.06: -0.0518962
|
---|
132 | 1403.07: -0.750935
|
---|
133 | 1403.08: 0.499586
|
---|
134 | ---------------------------------------------------
|
---|
135 | Specify fitter on the 4 gaussians:
|
---|
136 | GAUSSIAN element:
|
---|
137 | Amplitude: 1, 0
|
---|
138 | Center: 1402.5, 0
|
---|
139 | Sigma: 0.0195312, 0
|
---|
140 |
|
---|
141 | GAUSSIAN element:
|
---|
142 | Amplitude: 2.5, 0
|
---|
143 | Center: 1405, 0
|
---|
144 | Sigma: 0.0390625, 0
|
---|
145 |
|
---|
146 | GAUSSIAN element:
|
---|
147 | Amplitude: 0.5, 0
|
---|
148 | Center: 1407.5, 0
|
---|
149 | Sigma: 0.078125, 0
|
---|
150 |
|
---|
151 | GAUSSIAN element:
|
---|
152 | Amplitude: 5, 0
|
---|
153 | Center: 1403, 0
|
---|
154 | Sigma: 0.0292969, 0
|
---|
155 |
|
---|
156 | ---------------------------------------------------
|
---|
157 | Execute the fitter, can do (1:Y): 1
|
---|
158 | The results:
|
---|
159 | GAUSSIAN element:
|
---|
160 | Amplitude: 0.917797, 0.310674
|
---|
161 | Center: 1402.5, 0.00347673
|
---|
162 | Sigma: 0.00882989, 0.00343021
|
---|
163 | Parameters: [0.917797, 1402.5, 0.00882989]
|
---|
164 | Errors: [0.310674, 0.00347673, 0.00343021]
|
---|
165 |
|
---|
166 | GAUSSIAN element:
|
---|
167 | Amplitude: 2.76117, 0.238196
|
---|
168 | Center: 1405, 0.00151172
|
---|
169 | Sigma: 0.0151761, 0.00151172
|
---|
170 | Parameters: [2.76117, 1405, 0.0151761]
|
---|
171 | Errors: [0.238196, 0.00151172, 0.00151172]
|
---|
172 |
|
---|
173 | GAUSSIAN element:
|
---|
174 | Amplitude: 0.612907, 0.18968
|
---|
175 | Center: 1407.48, 0.0085527
|
---|
176 | Sigma: 0.0239303, 0.0085527
|
---|
177 | Parameters: [0.612907, 1407.48, 0.0239303]
|
---|
178 | Errors: [0.18968, 0.0085527, 0.0085527]
|
---|
179 |
|
---|
180 | GAUSSIAN element:
|
---|
181 | Amplitude: 5.24752, 0.272235
|
---|
182 | Center: 1403, 0.000695977
|
---|
183 | Sigma: 0.0116179, 0.000695945
|
---|
184 | Parameters: [5.24752, 1403, 0.0116179]
|
---|
185 | Errors: [0.272235, 0.000695977, 0.000695945]
|
---|
186 |
|
---|
187 | >>>
|
---|
188 | Number of iterations: 29
|
---|
189 | <<<
|
---|
190 | ---------------------------------------------------
|
---|
191 | GAUSSIAN element:
|
---|
192 | Amplitude: 1, 0
|
---|
193 | Center: 1402.5, 0
|
---|
194 | Sigma: 0.0195312, 0
|
---|
195 |
|
---|
196 | GAUSSIAN element:
|
---|
197 | Amplitude: 2.5, 0
|
---|
198 | Center: 1405, 0
|
---|
199 | Sigma: 0.0390625, 0
|
---|
200 |
|
---|
201 | GAUSSIAN element:
|
---|
202 | Amplitude: 0.5, 0
|
---|
203 | Center: 1407.5, 0
|
---|
204 | Sigma: 0.078125, 0
|
---|
205 |
|
---|
206 | GAUSSIAN element:
|
---|
207 | Amplitude: 5, 0 (fixed)
|
---|
208 | Center: 1403, 0
|
---|
209 | Sigma: 0.0292969, 0
|
---|
210 |
|
---|
211 | ---------------------------------------------------
|
---|
212 | Execute the fitter again with a fixed ampl, can do (1:Y): 1
|
---|
213 | The results:
|
---|
214 | GAUSSIAN element:
|
---|
215 | Amplitude: 0.917772, 0.310662
|
---|
216 | Center: 1402.5, 0.00347618
|
---|
217 | Sigma: 0.00883038, 0.00342961
|
---|
218 | Parameters: [0.917772, 1402.5, 0.00883038]
|
---|
219 | Errors: [0.310662, 0.00347618, 0.00342961]
|
---|
220 |
|
---|
221 | GAUSSIAN element:
|
---|
222 | Amplitude: 2.76117, 0.23818
|
---|
223 | Center: 1405, 0.00151162
|
---|
224 | Sigma: 0.0151761, 0.00151162
|
---|
225 | Parameters: [2.76117, 1405, 0.0151761]
|
---|
226 | Errors: [0.23818, 0.00151162, 0.00151162]
|
---|
227 |
|
---|
228 | GAUSSIAN element:
|
---|
229 | Amplitude: 0.61293, 0.18968
|
---|
230 | Center: 1407.48, 0.00855088
|
---|
231 | Sigma: 0.0239286, 0.00855088
|
---|
232 | Parameters: [0.61293, 1407.48, 0.0239286]
|
---|
233 | Errors: [0.18968, 0.00855088, 0.00855088]
|
---|
234 |
|
---|
235 | GAUSSIAN element:
|
---|
236 | Amplitude: 5, 0 (fixed)
|
---|
237 | Center: 1403, 0.000741387
|
---|
238 | Sigma: 0.0119707, 0.00060533
|
---|
239 | Parameters: [5, 1403, 0.0119707]
|
---|
240 | Errors: [0, 0.000741387, 0.00060533]
|
---|
241 |
|
---|
242 | >>>
|
---|
243 | Number of iterations: 26
|
---|
244 | <<<
|
---|
245 | ---------------------------------------------------
|
---|
246 | Different start values:
|
---|
247 | GAUSSIAN element:
|
---|
248 | Amplitude: 0.9, 0
|
---|
249 | Center: 1402.5, 0
|
---|
250 | Sigma: 0.0185547, 0
|
---|
251 |
|
---|
252 | GAUSSIAN element:
|
---|
253 | Amplitude: 2.25, 0
|
---|
254 | Center: 1405, 0
|
---|
255 | Sigma: 0.0371094, 0
|
---|
256 |
|
---|
257 | GAUSSIAN element:
|
---|
258 | Amplitude: 0.45, 0
|
---|
259 | Center: 1407.5, 0
|
---|
260 | Sigma: 0.0742188, 0
|
---|
261 |
|
---|
262 | GAUSSIAN element:
|
---|
263 | Amplitude: 4.5, 0
|
---|
264 | Center: 1403, 0
|
---|
265 | Sigma: 0.027832, 0
|
---|
266 |
|
---|
267 | Execute the fitter, can do (1:Y): 1
|
---|
268 | The results:
|
---|
269 | GAUSSIAN element:
|
---|
270 | Amplitude: 0.917785, 0.310679
|
---|
271 | Center: 1402.5, 0.00347653
|
---|
272 | Sigma: 0.00883013, 0.00342999
|
---|
273 |
|
---|
274 | GAUSSIAN element:
|
---|
275 | Amplitude: 2.76117, 0.238196
|
---|
276 | Center: 1405, 0.00151172
|
---|
277 | Sigma: 0.0151761, 0.00151172
|
---|
278 |
|
---|
279 | GAUSSIAN element:
|
---|
280 | Amplitude: 0.61293, 0.189693
|
---|
281 | Center: 1407.48, 0.00855143
|
---|
282 | Sigma: 0.0239285, 0.00855143
|
---|
283 |
|
---|
284 | GAUSSIAN element:
|
---|
285 | Amplitude: 5.24752, 0.272235
|
---|
286 | Center: 1403, 0.000695977
|
---|
287 | Sigma: 0.0116179, 0.000695945
|
---|
288 |
|
---|
289 | >>>
|
---|
290 | Number of iterations: 32
|
---|
291 | <<<
|
---|
292 | ---------------------------------------------------
|
---|
293 | Differences:
|
---|
294 | Min difference: -1.09994, max: 1.01271, average: 0.00978336, sigma: 0.0100325
|
---|
295 | ---------------------------------------------------
|
---|
296 | ---------------------------------------------------
|
---|
297 | Estimates:
|
---|
298 | Found 20 estimates
|
---|
299 | Estimate 0: GAUSSIAN element:
|
---|
300 | Amplitude: 4.93017, 0
|
---|
301 | Center: 307.195, 0
|
---|
302 | Sigma: 3.05174, 0
|
---|
303 |
|
---|
304 | Estimate 1: GAUSSIAN element:
|
---|
305 | Amplitude: 2.79525, 0
|
---|
306 | Center: 511.819, 0
|
---|
307 | Sigma: 3.29148, 0
|
---|
308 |
|
---|
309 | Estimate 2: GAUSSIAN element:
|
---|
310 | Amplitude: 0.906691, 0
|
---|
311 | Center: 766.653, 0
|
---|
312 | Sigma: 2.31423, 0
|
---|
313 |
|
---|
314 | Estimate 3: GAUSSIAN element:
|
---|
315 | Amplitude: 0.90563, 0
|
---|
316 | Center: 501.372, 0
|
---|
317 | Sigma: 3.60214, 0
|
---|
318 |
|
---|
319 | Estimate 4: GAUSSIAN element:
|
---|
320 | Amplitude: 0.861827, 0
|
---|
321 | Center: 839.949, 0
|
---|
322 | Sigma: 3.43708, 0
|
---|
323 |
|
---|
324 | Estimate 5: GAUSSIAN element:
|
---|
325 | Amplitude: 0.846625, 0
|
---|
326 | Center: 112.878, 0
|
---|
327 | Sigma: 2.28534, 0
|
---|
328 |
|
---|
329 | Estimate 6: GAUSSIAN element:
|
---|
330 | Amplitude: 0.751603, 0
|
---|
331 | Center: 871.157, 0
|
---|
332 | Sigma: 2.78939, 0
|
---|
333 |
|
---|
334 | Estimate 7: GAUSSIAN element:
|
---|
335 | Amplitude: 0.699624, 0
|
---|
336 | Center: 36.4464, 0
|
---|
337 | Sigma: 3.65743, 0
|
---|
338 |
|
---|
339 | Estimate 8: GAUSSIAN element:
|
---|
340 | Amplitude: 0.682235, 0
|
---|
341 | Center: 395.917, 0
|
---|
342 | Sigma: 3.5893, 0
|
---|
343 |
|
---|
344 | Estimate 9: GAUSSIAN element:
|
---|
345 | Amplitude: 0.663379, 0
|
---|
346 | Center: 450.12, 0
|
---|
347 | Sigma: 0.548263, 0
|
---|
348 |
|
---|
349 | Estimate 10: GAUSSIAN element:
|
---|
350 | Amplitude: 0.640783, 0
|
---|
351 | Center: 827.254, 0
|
---|
352 | Sigma: 3.35359, 0
|
---|
353 |
|
---|
354 | Estimate 11: GAUSSIAN element:
|
---|
355 | Amplitude: 0.616448, 0
|
---|
356 | Center: 245.555, 0
|
---|
357 | Sigma: 3.28022, 0
|
---|
358 |
|
---|
359 | Estimate 12: GAUSSIAN element:
|
---|
360 | Amplitude: 0.578568, 0
|
---|
361 | Center: 120.043, 0
|
---|
362 | Sigma: 1.45528, 0
|
---|
363 |
|
---|
364 | Estimate 13: GAUSSIAN element:
|
---|
365 | Amplitude: 0.569486, 0
|
---|
366 | Center: 663.971, 0
|
---|
367 | Sigma: 1.81295, 0
|
---|
368 |
|
---|
369 | Estimate 14: GAUSSIAN element:
|
---|
370 | Amplitude: 0.56377, 0
|
---|
371 | Center: 611.848, 0
|
---|
372 | Sigma: 2.99822, 0
|
---|
373 |
|
---|
374 | Estimate 15: GAUSSIAN element:
|
---|
375 | Amplitude: 0.561451, 0
|
---|
376 | Center: 937.91, 0
|
---|
377 | Sigma: 2.32834, 0
|
---|
378 |
|
---|
379 | Estimate 16: GAUSSIAN element:
|
---|
380 | Amplitude: 0.54666, 0
|
---|
381 | Center: 336.559, 0
|
---|
382 | Sigma: 1.8761, 0
|
---|
383 |
|
---|
384 | Estimate 17: GAUSSIAN element:
|
---|
385 | Amplitude: 0.524891, 0
|
---|
386 | Center: 443.644, 0
|
---|
387 | Sigma: 0.809077, 0
|
---|
388 |
|
---|
389 | Estimate 18: GAUSSIAN element:
|
---|
390 | Amplitude: 0.523377, 0
|
---|
391 | Center: 645.266, 0
|
---|
392 | Sigma: 3.01063, 0
|
---|
393 |
|
---|
394 | Estimate 19: GAUSSIAN element:
|
---|
395 | Amplitude: 0.515985, 0
|
---|
396 | Center: 446.61, 0
|
---|
397 | Sigma: 1.18317, 0
|
---|
398 |
|
---|
399 | ---------------------------------------------------
|
---|
400 | Limited number of estimates:
|
---|
401 | Found 4 estimates
|
---|
402 | Estimate 0: GAUSSIAN element:
|
---|
403 | Amplitude: 4.93017, 0
|
---|
404 | Center: 307.195, 0
|
---|
405 | Sigma: 3.05174, 0
|
---|
406 |
|
---|
407 | Estimate 1: GAUSSIAN element:
|
---|
408 | Amplitude: 2.79525, 0
|
---|
409 | Center: 511.819, 0
|
---|
410 | Sigma: 3.29148, 0
|
---|
411 |
|
---|
412 | Estimate 2: GAUSSIAN element:
|
---|
413 | Amplitude: 0.906691, 0
|
---|
414 | Center: 766.653, 0
|
---|
415 | Sigma: 2.31423, 0
|
---|
416 |
|
---|
417 | Estimate 3: GAUSSIAN element:
|
---|
418 | Amplitude: 0.90563, 0
|
---|
419 | Center: 501.372, 0
|
---|
420 | Sigma: 3.60214, 0
|
---|
421 |
|
---|
422 | ---------------------------------------------------
|
---|