Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·3d5bd0218bd23db6928d05a8ff0bb315·5457624·doc·optional·python-lmfit-doc_1.2.2-3_all.deb |
2 | ·5dcd200c5a54ac442a66e787bece09e6·80160·python·optional·python3-lmfit_1.2.2-3_all.deb | 2 | ·5dcd200c5a54ac442a66e787bece09e6·80160·python·optional·python3-lmfit_1.2.2-3_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-02-15·20:12:51.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-02-15·20:12:51.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····7512·2024-02-15·20:12:51.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····7512·2024-02-15·20:12:51.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··54499 | 3 | -rw-r--r--···0········0········0··5449920·2024-02-15·20:12:51.000000·data.tar.xz |
Offset 249, 15 lines modified | Offset 249, 15 lines modified | ||
249 | -rw-r--r--···0·root·········(0)·root·········(0)····25280·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/index.html | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····25280·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/index.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····24391·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/installation.html | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····24391·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/installation.html |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····16721·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/intro.html | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····16721·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/intro.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)···199909·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/model.html | 252 | -rw-r--r--···0·root·········(0)·root·········(0)···199909·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/model.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)·····3856·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/objects.inv | 253 | -rw-r--r--···0·root·········(0)·root·········(0)·····3856·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/objects.inv |
254 | -rw-r--r--···0·root·········(0)·root·········(0)····62962·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/parameters.html | 254 | -rw-r--r--···0·root·········(0)·root·········(0)····62962·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/parameters.html |
255 | -rw-r--r--···0·root·········(0)·root·········(0)·····6060·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/search.html | 255 | -rw-r--r--···0·root·········(0)·root·········(0)·····6060·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/search.html |
256 | -rw-r--r--···0·root·········(0)·root·········(0)···1183 | 256 | -rw-r--r--···0·root·········(0)·root·········(0)···118311·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/searchindex.js |
257 | -rw-r--r--···0·root·········(0)·root·········(0)·····8574·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/support.html | 257 | -rw-r--r--···0·root·········(0)·root·········(0)·····8574·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/support.html |
258 | -rw-r--r--···0·root·········(0)·root·········(0)····62049·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/whatsnew.html | 258 | -rw-r--r--···0·root·········(0)·root·········(0)····62049·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/whatsnew.html |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc-base/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc-base/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······305·2024-02-15·20:12:51.000000·./usr/share/doc-base/python-lmfit-doc.python-lmfit-doc | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······305·2024-02-15·20:12:51.000000·./usr/share/doc-base/python-lmfit-doc.python-lmfit-doc |
261 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/_static/doctools.js·->·../../../../javascript/sphinxdoc/1.0/doctools.js | 261 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/_static/doctools.js·->·../../../../javascript/sphinxdoc/1.0/doctools.js |
262 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/_static/language_data.js·->·../../../../javascript/sphinxdoc/1.0/language_data.js | 262 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/_static/language_data.js·->·../../../../javascript/sphinxdoc/1.0/language_data.js |
263 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/_static/searchtools.js·->·../../../../javascript/sphinxdoc/1.0/searchtools.js | 263 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-02-15·20:12:51.000000·./usr/share/doc/python3-lmfit/html/_static/searchtools.js·->·../../../../javascript/sphinxdoc/1.0/searchtools.js |
Offset 496, 15 lines modified | Offset 496, 15 lines modified | ||
496 | ..·rst-class::·sphx-glr-timing | 496 | ..·rst-class::·sphx-glr-timing |
497 | ···**Total·running·time·of·the·script:**·(0·minutes·0.4 | 497 | ···**Total·running·time·of·the·script:**·(0·minutes·0.470·seconds) |
498 | ..·_sphx_glr_download_examples_example_Model_interface.py: | 498 | ..·_sphx_glr_download_examples_example_Model_interface.py: |
499 | ..·only::·html | 499 | ..·only::·html |
500 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 500 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 970, 15 lines modified | Offset 970, 15 lines modified | ||
970 | ..·rst-class::·sphx-glr-timing | 970 | ..·rst-class::·sphx-glr-timing |
971 | ···**Total·running·time·of·the·script:**·(0·minutes· | 971 | ···**Total·running·time·of·the·script:**·(0·minutes·46.498·seconds) |
972 | ..·_sphx_glr_download_examples_example_brute.py: | 972 | ..·_sphx_glr_download_examples_example_brute.py: |
973 | ..·only::·html | 973 | ..·only::·html |
974 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 974 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 291, 15 lines modified | Offset 291, 15 lines modified | ||
291 | ..·rst-class::·sphx-glr-timing | 291 | ..·rst-class::·sphx-glr-timing |
292 | ···**Total·running·time·of·the·script:**·(0·minutes· | 292 | ···**Total·running·time·of·the·script:**·(0·minutes·1.020·seconds) |
293 | ..·_sphx_glr_download_examples_example_complex_resonator_model.py: | 293 | ..·_sphx_glr_download_examples_example_complex_resonator_model.py: |
294 | ..·only::·html | 294 | ..·only::·html |
295 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 295 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 275, 15 lines modified | Offset 275, 15 lines modified | ||
275 | ..·rst-class::·sphx-glr-timing | 275 | ..·rst-class::·sphx-glr-timing |
276 | ···**Total·running·time·of·the·script:**·(0·minutes·2 | 276 | ···**Total·running·time·of·the·script:**·(0·minutes·27.249·seconds) |
277 | ..·_sphx_glr_download_examples_example_confidence_interval.py: | 277 | ..·_sphx_glr_download_examples_example_confidence_interval.py: |
278 | ..·only::·html | 278 | ..·only::·html |
279 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 279 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 261, 15 lines modified | Offset 261, 15 lines modified | ||
261 | ..·rst-class::·sphx-glr-timing | 261 | ..·rst-class::·sphx-glr-timing |
262 | ···**Total·running·time·of·the·script:**·(0·minutes·1. | 262 | ···**Total·running·time·of·the·script:**·(0·minutes·1.703·seconds) |
263 | ..·_sphx_glr_download_examples_example_detect_outliers.py: | 263 | ..·_sphx_glr_download_examples_example_detect_outliers.py: |
264 | ..·only::·html | 264 | ..·only::·html |
265 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 265 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 184, 15 lines modified | Offset 184, 15 lines modified | ||
184 | ..·rst-class::·sphx-glr-timing | 184 | ..·rst-class::·sphx-glr-timing |
185 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 185 | ···**Total·running·time·of·the·script:**·(0·minutes·0.683·seconds) |
186 | ..·_sphx_glr_download_examples_example_diffev.py: | 186 | ..·_sphx_glr_download_examples_example_diffev.py: |
187 | ..·only::·html | 187 | ..·only::·html |
188 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 188 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 139, 15 lines modified | Offset 139, 15 lines modified | ||
139 | ..·rst-class::·sphx-glr-timing | 139 | ..·rst-class::·sphx-glr-timing |
140 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 140 | ···**Total·running·time·of·the·script:**·(0·minutes·0.382·seconds) |
141 | ..·_sphx_glr_download_examples_example_expression_model.py: | 141 | ..·_sphx_glr_download_examples_example_expression_model.py: |
142 | ..·only::·html | 142 | ..·only::·html |
143 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 143 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 207, 15 lines modified | Offset 207, 15 lines modified | ||
207 | ..·rst-class::·sphx-glr-timing | 207 | ..·rst-class::·sphx-glr-timing |
208 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 208 | ···**Total·running·time·of·the·script:**·(0·minutes·0.279·seconds) |
209 | ..·_sphx_glr_download_examples_example_fit_multi_datasets.py: | 209 | ..·_sphx_glr_download_examples_example_fit_multi_datasets.py: |
210 | ..·only::·html | 210 | ..·only::·html |
211 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 211 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 121, 15 lines modified | Offset 121, 15 lines modified | ||
121 | ..·rst-class::·sphx-glr-timing | 121 | ..·rst-class::·sphx-glr-timing |
122 | ···**Total·running·time·of·the·script:**·(0·minutes·0.3 | 122 | ···**Total·running·time·of·the·script:**·(0·minutes·0.351·seconds) |
123 | ..·_sphx_glr_download_examples_example_fit_with_algebraic_constraint.py: | 123 | ..·_sphx_glr_download_examples_example_fit_with_algebraic_constraint.py: |
124 | ..·only::·html | 124 | ..·only::·html |
125 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 125 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 178, 15 lines modified | Offset 178, 15 lines modified | ||
178 | ..·rst-class::·sphx-glr-timing | 178 | ..·rst-class::·sphx-glr-timing |
179 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 179 | ···**Total·running·time·of·the·script:**·(0·minutes·0.362·seconds) |
180 | ..·_sphx_glr_download_examples_example_fit_with_bounds.py: | 180 | ..·_sphx_glr_download_examples_example_fit_with_bounds.py: |
181 | ..·only::·html | 181 | ..·only::·html |
182 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 182 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 175, 15 lines modified | Offset 175, 15 lines modified | ||
175 | ..·rst-class::·sphx-glr-timing | 175 | ..·rst-class::·sphx-glr-timing |
176 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 176 | ···**Total·running·time·of·the·script:**·(0·minutes·0.292·seconds) |
177 | ..·_sphx_glr_download_examples_example_fit_with_derivfunc.py: | 177 | ..·_sphx_glr_download_examples_example_fit_with_derivfunc.py: |
178 | ..·only::·html | 178 | ..·only::·html |
179 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 179 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 163, 15 lines modified | Offset 163, 15 lines modified | ||
163 | ..·rst-class::·sphx-glr-timing | 163 | ..·rst-class::·sphx-glr-timing |
164 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 164 | ···**Total·running·time·of·the·script:**·(0·minutes·0.524·seconds) |
165 | ..·_sphx_glr_download_examples_example_fit_with_inequality.py: | 165 | ..·_sphx_glr_download_examples_example_fit_with_inequality.py: |
166 | ..·only::·html | 166 | ..·only::·html |
167 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 167 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 199, 15 lines modified | Offset 199, 15 lines modified | ||
199 | ..·rst-class::·sphx-glr-timing | 199 | ..·rst-class::·sphx-glr-timing |
200 | ···**Total·running·time·of·the·script:**·(0·minutes·0.3 | 200 | ···**Total·running·time·of·the·script:**·(0·minutes·0.383·seconds) |
201 | ..·_sphx_glr_download_examples_example_reduce_fcn.py: | 201 | ..·_sphx_glr_download_examples_example_reduce_fcn.py: |
202 | ..·only::·html | 202 | ..·only::·html |
203 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 203 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 195, 15 lines modified | Offset 195, 15 lines modified | ||
195 | ..·rst-class::·sphx-glr-timing | 195 | ..·rst-class::·sphx-glr-timing |
196 | ···**Total·running·time·of·the·script:**·(0·minutes·1. | 196 | ···**Total·running·time·of·the·script:**·(0·minutes·1.301·seconds) |
197 | ..·_sphx_glr_download_examples_example_sympy.py: | 197 | ..·_sphx_glr_download_examples_example_sympy.py: |
198 | ..·only::·html | 198 | ..·only::·html |
199 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 199 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 368, 15 lines modified | Offset 368, 15 lines modified | ||
368 | ..·rst-class::·sphx-glr-timing | 368 | ..·rst-class::·sphx-glr-timing |
369 | ···**Total·running·time·of·the·script:**·(0·minutes· | 369 | ···**Total·running·time·of·the·script:**·(0·minutes·4.081·seconds) |
370 | ..·_sphx_glr_download_examples_example_two_dimensional_peak.py: | 370 | ..·_sphx_glr_download_examples_example_two_dimensional_peak.py: |
371 | ..·only::·html | 371 | ..·only::·html |
372 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 372 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 123, 15 lines modified | Offset 123, 15 lines modified | ||
123 | ..·rst-class::·sphx-glr-timing | 123 | ..·rst-class::·sphx-glr-timing |
124 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 124 | ···**Total·running·time·of·the·script:**·(0·minutes·0.552·seconds) |
125 | ..·_sphx_glr_download_examples_example_use_pandas.py: | 125 | ..·_sphx_glr_download_examples_example_use_pandas.py: |
126 | ..·only::·html | 126 | ..·only::·html |
127 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 127 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 337, 15 lines modified | Offset 337, 15 lines modified | ||
337 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[[Variables]] | 337 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[[Variables]] |
338 | ····N:····7.11270194·+/-·0.24334895·(3.42%)·(init·=·10) | 338 | ····N:····7.11270194·+/-·0.24334895·(3.42%)·(init·=·10) |
339 | ····tau:··2.92065227·+/-·0.13488230·(4.62%)·(init·=·1) | 339 | ····tau:··2.92065227·+/-·0.13488230·(4.62%)·(init·=·1) |
340 | [[Correlations]]·(unreported·correlations·are·<·0.100) | 340 | [[Correlations]]·(unreported·correlations·are·<·0.100) |
341 | ····C(N,·tau)·=·-0.9320 | 341 | ····C(N,·tau)·=·-0.9320 |
342 | </pre></div> | 342 | </pre></div> |
343 | </div> | 343 | </div> |
344 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.4 | 344 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.470·seconds)</p> |
345 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-model-interface-py"> | 345 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-model-interface-py"> |
346 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 346 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
347 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a69966d88009a9341e88bfe1935158a7/example_Model_interface.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_Model_interface.ipynb</span></code></a></p> | 347 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a69966d88009a9341e88bfe1935158a7/example_Model_interface.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_Model_interface.ipynb</span></code></a></p> |
348 | </div> | 348 | </div> |
349 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 349 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
350 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/8b2fe0a32f4790de5b0465c00682a37b/example_Model_interface.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_Model_interface.py</span></code></a></p> | 350 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/8b2fe0a32f4790de5b0465c00682a37b/example_Model_interface.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_Model_interface.py</span></code></a></p> |
351 | </div> | 351 | </div> |
Offset 179, 15 lines modified | Offset 179, 15 lines modified | ||
179 | result·=·model.fit(truncated_data_with_holes,·params,·t=t) | 179 | result·=·model.fit(truncated_data_with_holes,·params,·t=t) |
180 | report_fit(result.params) | 180 | report_fit(result.params) |
181 | [[Variables]] | 181 | [[Variables]] |
182 | ····N:····7.11270194·+/-·0.24334895·(3.42%)·(init·=·10) | 182 | ····N:····7.11270194·+/-·0.24334895·(3.42%)·(init·=·10) |
183 | ····tau:··2.92065227·+/-·0.13488230·(4.62%)·(init·=·1) | 183 | ····tau:··2.92065227·+/-·0.13488230·(4.62%)·(init·=·1) |
184 | [[Correlations]]·(unreported·correlations·are·<·0.100) | 184 | [[Correlations]]·(unreported·correlations·are·<·0.100) |
185 | ····C(N,·tau)·=·-0.9320 | 185 | ····C(N,·tau)·=·-0.9320 |
186 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.4 | 186 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.470·seconds) |
187 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8M_\x8o_\x8d_\x8e_\x8l_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e_\x8._\x8i_\x8p_\x8y_\x8n_\x8b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8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
190 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 190 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
191 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 191 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
192 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 192 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
193 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 193 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 649, 15 lines modified | Offset 649, 15 lines modified | ||
649 | </pre></div> | 649 | </pre></div> |
650 | </div> | 650 | </div> |
651 | <p>and·finally,·to·generated·the·figure:</p> | 651 | <p>and·finally,·to·generated·the·figure:</p> |
652 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plot_results_brute</span><span·class="p">(</span><span·class="n">result_brute</span><span·class="p">,</span>·<span·class="n">best_vals</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">varlabels</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span> | 652 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plot_results_brute</span><span·class="p">(</span><span·class="n">result_brute</span><span·class="p">,</span>·<span·class="n">best_vals</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">varlabels</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span> |
653 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 653 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
654 | </pre></div> | 654 | </pre></div> |
655 | </div> | 655 | </div> |
656 | <img·src="../_images/sphx_glr_example_brute_004.png"·srcset="../_images/sphx_glr_example_brute_004.png,·../_images/sphx_glr_example_brute_004_3_00x.png·3.00x"·alt="example·brute"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 656 | <img·src="../_images/sphx_glr_example_brute_004.png"·srcset="../_images/sphx_glr_example_brute_004.png,·../_images/sphx_glr_example_brute_004_3_00x.png·3.00x"·alt="example·brute"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·46.498·seconds)</p> |
657 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-brute-py"> | 657 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-brute-py"> |
658 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 658 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
659 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/9254f2af7eef00978dc5823dc5418985/example_brute.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_brute.ipynb</span></code></a></p> | 659 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/9254f2af7eef00978dc5823dc5418985/example_brute.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_brute.ipynb</span></code></a></p> |
660 | </div> | 660 | </div> |
661 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 661 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
662 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/c004866ac6395edd2609ff96cecdc255/example_brute.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_brute.py</span></code></a></p> | 662 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/c004866ac6395edd2609ff96cecdc255/example_brute.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_brute.py</span></code></a></p> |
663 | </div> | 663 | </div> |
Offset 476, 15 lines modified | Offset 476, 15 lines modified | ||
476 | ····if·output·is·not·None: | 476 | ····if·output·is·not·None: |
477 | ········plt.savefig(output) | 477 | ········plt.savefig(output) |
478 | and·finally,·to·generated·the·figure: | 478 | and·finally,·to·generated·the·figure: |
479 | plot_results_brute(result_brute,·best_vals=True,·varlabels=None) | 479 | plot_results_brute(result_brute,·best_vals=True,·varlabels=None) |
480 | plt.show() | 480 | plt.show() |
481 | [example·brute] | 481 | [example·brute] |
482 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 482 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·46.498·seconds) |
483 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J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x8l_\x8l_\x8e_\x8r_\x8y | 485 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
486 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 486 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
487 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 487 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
488 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 488 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
489 | ····*·[·_\x8i_\x8n_\x8t_\x8r_\x8o·| | 489 | ····*·[·_\x8i_\x8n_\x8t_\x8r_\x8o·| |
Offset 278, 15 lines modified | Offset 278, 15 lines modified | ||
278 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">xlabel</span><span·class="p">(</span><span·class="s1">'MHz'</span><span·class="p">)</span> | 278 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">xlabel</span><span·class="p">(</span><span·class="s1">'MHz'</span><span·class="p">)</span> |
279 | </pre></div> | 279 | </pre></div> |
280 | </div> | 280 | </div> |
281 | <ul·class="sphx-glr-horizontal"> | 281 | <ul·class="sphx-glr-horizontal"> |
282 | <li><img·src="../_images/sphx_glr_example_complex_resonator_model_002.png"·srcset="../_images/sphx_glr_example_complex_resonator_model_002.png,·../_images/sphx_glr_example_complex_resonator_model_002_3_00x.png·3.00x"·alt="example·complex·resonator·model"·class·=·"sphx-glr-multi-img"/></li> | 282 | <li><img·src="../_images/sphx_glr_example_complex_resonator_model_002.png"·srcset="../_images/sphx_glr_example_complex_resonator_model_002.png,·../_images/sphx_glr_example_complex_resonator_model_002_3_00x.png·3.00x"·alt="example·complex·resonator·model"·class·=·"sphx-glr-multi-img"/></li> |
283 | <li><img·src="../_images/sphx_glr_example_complex_resonator_model_003.png"·srcset="../_images/sphx_glr_example_complex_resonator_model_003.png,·../_images/sphx_glr_example_complex_resonator_model_003_3_00x.png·3.00x"·alt="example·complex·resonator·model"·class·=·"sphx-glr-multi-img"/></li> | 283 | <li><img·src="../_images/sphx_glr_example_complex_resonator_model_003.png"·srcset="../_images/sphx_glr_example_complex_resonator_model_003.png,·../_images/sphx_glr_example_complex_resonator_model_003_3_00x.png·3.00x"·alt="example·complex·resonator·model"·class·=·"sphx-glr-multi-img"/></li> |
284 | </ul> | 284 | </ul> |
285 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 285 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1.020·seconds)</p> |
286 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-complex-resonator-model-py"> | 286 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-complex-resonator-model-py"> |
287 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 287 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
288 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3dcc7459227dbd4ba1982949be8491e1/example_complex_resonator_model.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_complex_resonator_model.ipynb</span></code></a></p> | 288 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3dcc7459227dbd4ba1982949be8491e1/example_complex_resonator_model.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_complex_resonator_model.ipynb</span></code></a></p> |
289 | </div> | 289 | </div> |
290 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 290 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
291 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3805fc8171e8a0686d5cf65be55085ee/example_complex_resonator_model.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_complex_resonator_model.py</span></code></a></p> | 291 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3805fc8171e8a0686d5cf65be55085ee/example_complex_resonator_model.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_complex_resonator_model.py</span></code></a></p> |
292 | </div> | 292 | </div> |
Offset 158, 15 lines modified | Offset 158, 15 lines modified | ||
158 | plt.plot(f,·20*np.log10(np.abs(fit_s21)),·'.-',·label='best·fit') | 158 | plt.plot(f,·20*np.log10(np.abs(fit_s21)),·'.-',·label='best·fit') |
159 | plt.plot(f,·20*np.log10(np.abs(guess_s21)),·'--',·label='initial·fit') | 159 | plt.plot(f,·20*np.log10(np.abs(guess_s21)),·'--',·label='initial·fit') |
160 | plt.legend() | 160 | plt.legend() |
161 | plt.ylabel('|S21|·(dB)') | 161 | plt.ylabel('|S21|·(dB)') |
162 | plt.xlabel('MHz') | 162 | plt.xlabel('MHz') |
163 | ····*·[example·complex·resonator·model] | 163 | ····*·[example·complex·resonator·model] |
164 | ····*·[example·complex·resonator·model] | 164 | ····*·[example·complex·resonator·model] |
165 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\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| ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 170 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
171 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 171 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
172 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 172 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 291, 15 lines modified | Offset 291, 15 lines modified | ||
291 | ············<span·class="n">plt</span><span·class="o">.</span><span·class="n">ylabel</span><span·class="p">(</span><span·class="s1">'prob'</span><span·class="p">)</span> | 291 | ············<span·class="n">plt</span><span·class="o">.</span><span·class="n">ylabel</span><span·class="p">(</span><span·class="s1">'prob'</span><span·class="p">)</span> |
292 | ············<span·class="n">ax</span><span·class="o">.</span><span·class="n">tick_params</span><span·class="p">(</span><span·class="n">labelleft</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span> | 292 | ············<span·class="n">ax</span><span·class="o">.</span><span·class="n">tick_params</span><span·class="p">(</span><span·class="n">labelleft</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span> |
293 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">()</span> | 293 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">()</span> |
294 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 294 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
295 | </pre></div> | 295 | </pre></div> |
296 | </div> | 296 | </div> |
297 | <img·src="../_images/sphx_glr_example_confidence_interval_002.png"·srcset="../_images/sphx_glr_example_confidence_interval_002.png,·../_images/sphx_glr_example_confidence_interval_002_3_00x.png·3.00x"·alt="example·confidence·interval"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2 | 297 | <img·src="../_images/sphx_glr_example_confidence_interval_002.png"·srcset="../_images/sphx_glr_example_confidence_interval_002.png,·../_images/sphx_glr_example_confidence_interval_002_3_00x.png·3.00x"·alt="example·confidence·interval"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·27.249·seconds)</p> |
298 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-confidence-interval-py"> | 298 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-confidence-interval-py"> |
299 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 299 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
300 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/2c0316848a8a5e58fdf5c1bd1978018e/example_confidence_interval.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_confidence_interval.ipynb</span></code></a></p> | 300 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/2c0316848a8a5e58fdf5c1bd1978018e/example_confidence_interval.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_confidence_interval.ipynb</span></code></a></p> |
301 | </div> | 301 | </div> |
302 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 302 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
303 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b6a243851aa5b1d7362705005c5ed3b1/example_confidence_interval.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_confidence_interval.py</span></code></a></p> | 303 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b6a243851aa5b1d7362705005c5ed3b1/example_confidence_interval.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_confidence_interval.py</span></code></a></p> |
304 | </div> | 304 | </div> |
Offset 171, 15 lines modified | Offset 171, 15 lines modified | ||
171 | ············plt.plot(xn,·f(xn),·lw=1) | 171 | ············plt.plot(xn,·f(xn),·lw=1) |
172 | ············plt.ylabel('prob') | 172 | ············plt.ylabel('prob') |
173 | ············ax.tick_params(labelleft=True) | 173 | ············ax.tick_params(labelleft=True) |
174 | plt.tight_layout() | 174 | plt.tight_layout() |
175 | plt.show() | 175 | plt.show() |
176 | [example·confidence·interval] | 176 | [example·confidence·interval] |
177 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2 | 177 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·27.249·seconds) |
178 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8d_\x8e_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8v_\x8a_\x8l_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 178 | _\x8D_\x8o_\x8w_\x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\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 180 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
181 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 181 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
182 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 182 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
183 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 183 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
184 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 184 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 240, 15 lines modified | Offset 240, 15 lines modified | ||
240 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">stderrs</span><span·class="p">[</span><span·class="s1">'b'</span><span·class="p">])</span> | 240 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">stderrs</span><span·class="p">[</span><span·class="s1">'b'</span><span·class="p">])</span> |
241 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="p">[</span><span·class="n">idx</span><span·class="p">],</span>·<span·class="n">stderrs</span><span·class="p">[</span><span·class="s1">'b'</span><span·class="p">][</span><span·class="n">idx</span><span·class="p">],</span>·<span·class="n">color</span><span·class="o">=</span><span·class="s1">'r'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'outlier'</span><span·class="p">)</span> | 241 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="p">[</span><span·class="n">idx</span><span·class="p">],</span>·<span·class="n">stderrs</span><span·class="p">[</span><span·class="s1">'b'</span><span·class="p">][</span><span·class="n">idx</span><span·class="p">],</span>·<span·class="n">color</span><span·class="o">=</span><span·class="s1">'r'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'outlier'</span><span·class="p">)</span> |
242 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="s1">'err·b·change'</span><span·class="p">)</span> | 242 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="s1">'err·b·change'</span><span·class="p">)</span> |
243 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="s1">'x'</span><span·class="p">)</span> | 243 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="s1">'x'</span><span·class="p">)</span> |
244 | </pre></div> | 244 | </pre></div> |
245 | </div> | 245 | </div> |
246 | <img·src="../_images/sphx_glr_example_detect_outliers_003.png"·srcset="../_images/sphx_glr_example_detect_outliers_003.png,·../_images/sphx_glr_example_detect_outliers_003_3_00x.png·3.00x"·alt="example·detect·outliers"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1. | 246 | <img·src="../_images/sphx_glr_example_detect_outliers_003.png"·srcset="../_images/sphx_glr_example_detect_outliers_003.png,·../_images/sphx_glr_example_detect_outliers_003_3_00x.png·3.00x"·alt="example·detect·outliers"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1.703·seconds)</p> |
247 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-detect-outliers-py"> | 247 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-detect-outliers-py"> |
248 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 248 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
249 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a4a9bd70fc277eac0b5a505f48c84a99/example_detect_outliers.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_detect_outliers.ipynb</span></code></a></p> | 249 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a4a9bd70fc277eac0b5a505f48c84a99/example_detect_outliers.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_detect_outliers.ipynb</span></code></a></p> |
250 | </div> | 250 | </div> |
251 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 251 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
252 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/997bd062873174254128e513e48dc191/example_detect_outliers.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_detect_outliers.py</span></code></a></p> | 252 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/997bd062873174254128e513e48dc191/example_detect_outliers.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_detect_outliers.py</span></code></a></p> |
253 | </div> | 253 | </div> |
Offset 117, 15 lines modified | Offset 117, 15 lines modified | ||
117 | axs[3].plot(x,·stderrs['b']) | 117 | axs[3].plot(x,·stderrs['b']) |
118 | axs[3].scatter(x[idx],·stderrs['b'][idx],·color='r',·label='outlier') | 118 | axs[3].scatter(x[idx],·stderrs['b'][idx],·color='r',·label='outlier') |
119 | axs[3].set_ylabel('err·b·change') | 119 | axs[3].set_ylabel('err·b·change') |
120 | axs[3].set_xlabel('x') | 120 | axs[3].set_xlabel('x') |
121 | [example·detect·outliers] | 121 | [example·detect·outliers] |
122 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1. | 122 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1.703·seconds) |
123 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8d_\x8e_\x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8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 125 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
126 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 126 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
127 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 127 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
128 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 128 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
129 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 129 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 223, 15 lines modified | Offset 223, 15 lines modified | ||
223 | </div> | 223 | </div> |
224 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'data'</span><span·class="p">)</span> | 224 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'data'</span><span·class="p">)</span> |
225 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o1</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'leastsq'</span><span·class="p">)</span> | 225 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o1</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'leastsq'</span><span·class="p">)</span> |
226 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o2</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'diffev'</span><span·class="p">)</span> | 226 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o2</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'diffev'</span><span·class="p">)</span> |
227 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 227 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
228 | </pre></div> | 228 | </pre></div> |
229 | </div> | 229 | </div> |
230 | <img·src="../_images/sphx_glr_example_diffev_001.png"·srcset="../_images/sphx_glr_example_diffev_001.png,·../_images/sphx_glr_example_diffev_001_3_00x.png·3.00x"·alt="example·diffev"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 230 | <img·src="../_images/sphx_glr_example_diffev_001.png"·srcset="../_images/sphx_glr_example_diffev_001.png,·../_images/sphx_glr_example_diffev_001_3_00x.png·3.00x"·alt="example·diffev"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.683·seconds)</p> |
231 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-diffev-py"> | 231 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-diffev-py"> |
232 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 232 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
233 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b14ecb1d89648d4116095890700c90a4/example_diffev.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_diffev.ipynb</span></code></a></p> | 233 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b14ecb1d89648d4116095890700c90a4/example_diffev.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_diffev.ipynb</span></code></a></p> |
234 | </div> | 234 | </div> |
235 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 235 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
236 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/9be2a6edec6597f9b4fc9ae817df3c9e/example_diffev.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_diffev.py</span></code></a></p> | 236 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/9be2a6edec6597f9b4fc9ae817df3c9e/example_diffev.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_diffev.py</span></code></a></p> |
237 | </div> | 237 | </div> |
Offset 105, 15 lines modified | Offset 105, 15 lines modified | ||
105 | ····amp:·····1.80252706·(init·=·2.5) | 105 | ····amp:·····1.80252706·(init·=·2.5) |
106 | ····decay:···5.76285777·(init·=·1) | 106 | ····decay:···5.76285777·(init·=·1) |
107 | plt.plot(x,·yn,·'o',·label='data') | 107 | plt.plot(x,·yn,·'o',·label='data') |
108 | plt.plot(x,·yn+o1.residual,·'-',·label='leastsq') | 108 | plt.plot(x,·yn+o1.residual,·'-',·label='leastsq') |
109 | plt.plot(x,·yn+o2.residual,·'--',·label='diffev') | 109 | plt.plot(x,·yn+o2.residual,·'--',·label='diffev') |
110 | plt.legend() | 110 | plt.legend() |
111 | [example·diffev] | 111 | [example·diffev] |
112 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 112 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.683·seconds) |
113 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_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8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 115 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
116 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 116 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
117 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 117 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
118 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 118 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
119 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 119 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 181, 15 lines modified | Offset 181, 15 lines modified | ||
181 | </div> | 181 | </div> |
182 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">)</span> | 182 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">)</span> |
183 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">result</span><span·class="o">.</span><span·class="n">init_fit</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'initial·fit'</span><span·class="p">)</span> | 183 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">result</span><span·class="o">.</span><span·class="n">init_fit</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'initial·fit'</span><span·class="p">)</span> |
184 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">result</span><span·class="o">.</span><span·class="n">best_fit</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'best·fit'</span><span·class="p">)</span> | 184 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">result</span><span·class="o">.</span><span·class="n">best_fit</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'best·fit'</span><span·class="p">)</span> |
185 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 185 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
186 | </pre></div> | 186 | </pre></div> |
187 | </div> | 187 | </div> |
188 | <img·src="../_images/sphx_glr_example_expression_model_001.png"·srcset="../_images/sphx_glr_example_expression_model_001.png,·../_images/sphx_glr_example_expression_model_001_3_00x.png·3.00x"·alt="example·expression·model"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 188 | <img·src="../_images/sphx_glr_example_expression_model_001.png"·srcset="../_images/sphx_glr_example_expression_model_001.png,·../_images/sphx_glr_example_expression_model_001_3_00x.png·3.00x"·alt="example·expression·model"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.382·seconds)</p> |
189 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-expression-model-py"> | 189 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-expression-model-py"> |
190 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 190 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
191 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/18a51e50a47e90524ad3b8de0632b714/example_expression_model.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_expression_model.ipynb</span></code></a></p> | 191 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/18a51e50a47e90524ad3b8de0632b714/example_expression_model.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_expression_model.ipynb</span></code></a></p> |
192 | </div> | 192 | </div> |
193 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 193 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
194 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/dd61d0d99d106be1eecc4533c0a813be/example_expression_model.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_expression_model.py</span></code></a></p> | 194 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/dd61d0d99d106be1eecc4533c0a813be/example_expression_model.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_expression_model.py</span></code></a></p> |
195 | </div> | 195 | </div> |
Offset 64, 15 lines modified | Offset 64, 15 lines modified | ||
64 | [[Correlations]]·(unreported·correlations·are·<·0.100) | 64 | [[Correlations]]·(unreported·correlations·are·<·0.100) |
65 | ····C(amp,·wid)·=·+0.5774 | 65 | ····C(amp,·wid)·=·+0.5774 |
66 | plt.plot(x,·y,·'o') | 66 | plt.plot(x,·y,·'o') |
67 | plt.plot(x,·result.init_fit,·'--',·label='initial·fit') | 67 | plt.plot(x,·result.init_fit,·'--',·label='initial·fit') |
68 | plt.plot(x,·result.best_fit,·'-',·label='best·fit') | 68 | plt.plot(x,·result.best_fit,·'-',·label='best·fit') |
69 | plt.legend() | 69 | plt.legend() |
70 | [example·expression·model] | 70 | [example·expression·model] |
71 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 71 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.382·seconds) |
72 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8e_\x8x_\x8p_\x8r_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e_\x8l_\x8._\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_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 74 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
75 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 75 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
76 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 76 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
77 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 77 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
78 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 78 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 230, 15 lines modified | Offset 230, 15 lines modified | ||
230 | <p>Plot·the·data·sets·and·fits</p> | 230 | <p>Plot·the·data·sets·and·fits</p> |
231 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">figure</span><span·class="p">()</span> | 231 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">figure</span><span·class="p">()</span> |
232 | <span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">5</span><span·class="p">):</span> | 232 | <span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">5</span><span·class="p">):</span> |
233 | ····<span·class="n">y_fit</span>·<span·class="o">=</span>·<span·class="n">gauss_dataset</span><span·class="p">(</span><span·class="n">out</span><span·class="o">.</span><span·class="n">params</span><span·class="p">,</span>·<span·class="n">i</span><span·class="p">,</span>·<span·class="n">x</span><span·class="p">)</span> | 233 | ····<span·class="n">y_fit</span>·<span·class="o">=</span>·<span·class="n">gauss_dataset</span><span·class="p">(</span><span·class="n">out</span><span·class="o">.</span><span·class="n">params</span><span·class="p">,</span>·<span·class="n">i</span><span·class="p">,</span>·<span·class="n">x</span><span·class="p">)</span> |
234 | ····<span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">[</span><span·class="n">i</span><span·class="p">,</span>·<span·class="p">:],</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">x</span><span·class="p">,</span>·<span·class="n">y_fit</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">)</span> | 234 | ····<span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">[</span><span·class="n">i</span><span·class="p">,</span>·<span·class="p">:],</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">x</span><span·class="p">,</span>·<span·class="n">y_fit</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">)</span> |
235 | </pre></div> | 235 | </pre></div> |
236 | </div> | 236 | </div> |
237 | <img·src="../_images/sphx_glr_example_fit_multi_datasets_001.png"·srcset="../_images/sphx_glr_example_fit_multi_datasets_001.png,·../_images/sphx_glr_example_fit_multi_datasets_001_3_00x.png·3.00x"·alt="example·fit·multi·datasets"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 237 | <img·src="../_images/sphx_glr_example_fit_multi_datasets_001.png"·srcset="../_images/sphx_glr_example_fit_multi_datasets_001.png,·../_images/sphx_glr_example_fit_multi_datasets_001_3_00x.png·3.00x"·alt="example·fit·multi·datasets"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.279·seconds)</p> |
238 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-multi-datasets-py"> | 238 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-multi-datasets-py"> |
239 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 239 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
240 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/e9797dfaa256c029a43c2a364328ed36/example_fit_multi_datasets.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_multi_datasets.ipynb</span></code></a></p> | 240 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/e9797dfaa256c029a43c2a364328ed36/example_fit_multi_datasets.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_multi_datasets.ipynb</span></code></a></p> |
241 | </div> | 241 | </div> |
242 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 242 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
243 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5c7aecfc832cba8709209d4aee80c638/example_fit_multi_datasets.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_multi_datasets.py</span></code></a></p> | 243 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5c7aecfc832cba8709209d4aee80c638/example_fit_multi_datasets.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_multi_datasets.py</span></code></a></p> |
244 | </div> | 244 | </div> |
Offset 111, 15 lines modified | Offset 111, 15 lines modified | ||
111 | ····C(amp_2,·amp_5)·=·+0.1092 | 111 | ····C(amp_2,·amp_5)·=·+0.1092 |
112 | Plot·the·data·sets·and·fits | 112 | Plot·the·data·sets·and·fits |
113 | plt.figure() | 113 | plt.figure() |
114 | for·i·in·range(5): | 114 | for·i·in·range(5): |
115 | ····y_fit·=·gauss_dataset(out.params,·i,·x) | 115 | ····y_fit·=·gauss_dataset(out.params,·i,·x) |
116 | ····plt.plot(x,·data[i,·:],·'o',·x,·y_fit,·'-') | 116 | ····plt.plot(x,·data[i,·:],·'o',·x,·y_fit,·'-') |
117 | [example·fit·multi·datasets] | 117 | [example·fit·multi·datasets] |
118 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 118 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.279·seconds) |
119 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f_\x8i_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i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8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 121 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
122 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
123 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 123 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
124 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 124 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
125 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 125 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 210, 15 lines modified | Offset 210, 15 lines modified | ||
210 | ····C(g_sigma,·total_amplitude)········=·-0.4115 | 210 | ····C(g_sigma,·total_amplitude)········=·-0.4115 |
211 | ····C(g_center,·line_intercept)········=·+0.3868 | 211 | ····C(g_center,·line_intercept)········=·+0.3868 |
212 | ····C(g_amplitude,·line_intercept)·····=·+0.1834 | 212 | ····C(g_amplitude,·line_intercept)·····=·+0.1834 |
213 | ····C(g_amplitude,·line_slope)·········=·+0.1825 | 213 | ····C(g_amplitude,·line_slope)·········=·+0.1825 |
214 | ····C(g_sigma,·line_slope)·············=·+0.1739 | 214 | ····C(g_sigma,·line_slope)·············=·+0.1739 |
215 | </pre></div> | 215 | </pre></div> |
216 | </div> | 216 | </div> |
217 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.3 | 217 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.351·seconds)</p> |
218 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-algebraic-constraint-py"> | 218 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-algebraic-constraint-py"> |
219 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 219 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
220 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/795f02254c8fb4ff85239a1247e0cdb3/example_fit_with_algebraic_constraint.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_algebraic_constraint.ipynb</span></code></a></p> | 220 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/795f02254c8fb4ff85239a1247e0cdb3/example_fit_with_algebraic_constraint.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_algebraic_constraint.ipynb</span></code></a></p> |
221 | </div> | 221 | </div> |
222 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 222 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
223 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/cb6735e259aa0fe1e9993a89862af987/example_fit_with_algebraic_constraint.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_algebraic_constraint.py</span></code></a></p> | 223 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/cb6735e259aa0fe1e9993a89862af987/example_fit_with_algebraic_constraint.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_algebraic_constraint.py</span></code></a></p> |
224 | </div> | 224 | </div> |
Offset 106, 15 lines modified | Offset 106, 15 lines modified | ||
106 | ····C(g_amplitude,·total_amplitude)····=·-0.6115 | 106 | ····C(g_amplitude,·total_amplitude)····=·-0.6115 |
107 | ····C(line_intercept,·total_amplitude)·=·-0.5883 | 107 | ····C(line_intercept,·total_amplitude)·=·-0.5883 |
108 | ····C(g_sigma,·total_amplitude)········=·-0.4115 | 108 | ····C(g_sigma,·total_amplitude)········=·-0.4115 |
109 | ····C(g_center,·line_intercept)········=·+0.3868 | 109 | ····C(g_center,·line_intercept)········=·+0.3868 |
110 | ····C(g_amplitude,·line_intercept)·····=·+0.1834 | 110 | ····C(g_amplitude,·line_intercept)·····=·+0.1834 |
111 | ····C(g_amplitude,·line_slope)·········=·+0.1825 | 111 | ····C(g_amplitude,·line_slope)·········=·+0.1825 |
112 | ····C(g_sigma,·line_slope)·············=·+0.1739 | 112 | ····C(g_sigma,·line_slope)·············=·+0.1739 |
113 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.3 | 113 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.351·seconds) |
114 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_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_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f_\x8i_\x8t_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8a_\x8l_\x8g_\x8e_\x8b_\x8r_\x8a_\x8i_\x8c_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8a_\x8i_\x8n_\x8t_\x8._\x8p_\x8y |
116 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 116 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
117 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 117 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
118 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 118 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
119 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 119 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
120 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 120 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 208, 15 lines modified | Offset 208, 15 lines modified | ||
208 | </div> | 208 | </div> |
209 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'data'</span><span·class="p">)</span> | 209 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'data'</span><span·class="p">)</span> |
210 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">fit</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'best·fit'</span><span·class="p">)</span> | 210 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">fit</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'best·fit'</span><span·class="p">)</span> |
211 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 211 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
212 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 212 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
213 | </pre></div> | 213 | </pre></div> |
214 | </div> | 214 | </div> |
215 | <img·src="../_images/sphx_glr_example_fit_with_bounds_001.png"·srcset="../_images/sphx_glr_example_fit_with_bounds_001.png,·../_images/sphx_glr_example_fit_with_bounds_001_3_00x.png·3.00x"·alt="example·fit·with·bounds"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 215 | <img·src="../_images/sphx_glr_example_fit_with_bounds_001.png"·srcset="../_images/sphx_glr_example_fit_with_bounds_001.png,·../_images/sphx_glr_example_fit_with_bounds_001_3_00x.png·3.00x"·alt="example·fit·with·bounds"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.362·seconds)</p> |
216 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-bounds-py"> | 216 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-bounds-py"> |
217 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 217 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
218 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fd01b33f1731fe67d0f89a803067a496/example_fit_with_bounds.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_bounds.ipynb</span></code></a></p> | 218 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fd01b33f1731fe67d0f89a803067a496/example_fit_with_bounds.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_bounds.ipynb</span></code></a></p> |
219 | </div> | 219 | </div> |
220 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 220 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
221 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/27b87cac9cd9afd7fa73c15f10211608/example_fit_with_bounds.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_bounds.py</span></code></a></p> | 221 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/27b87cac9cd9afd7fa73c15f10211608/example_fit_with_bounds.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_bounds.py</span></code></a></p> |
222 | </div> | 222 | </div> |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | ··|·decay····|·+0.5757··|·-0.0404··|·-0.0502··|·+1.0000··| | 91 | ··|·decay····|·+0.5757··|·-0.0404··|·-0.0502··|·+1.0000··| |
92 | ··+----------+----------+----------+----------+----------+ | 92 | ··+----------+----------+----------+----------+----------+ |
93 | plt.plot(x,·data,·'o',·label='data') | 93 | plt.plot(x,·data,·'o',·label='data') |
94 | plt.plot(x,·fit,·label='best·fit') | 94 | plt.plot(x,·fit,·label='best·fit') |
95 | plt.legend() | 95 | plt.legend() |
96 | plt.show() | 96 | plt.show() |
97 | [example·fit·with·bounds] | 97 | [example·fit·with·bounds] |
98 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 98 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.362·seconds) |
99 | _\x8D_\x8o_\x8w_\x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\x8w_\x8i_\x8t_\x8h_\x8__\x8b_\x8o_\x8u_\x8n_\x8d_\x8s_\x8._\x8p_\x8y |
101 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 101 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
102 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 102 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
103 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 103 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
104 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 104 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
105 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 105 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 214, 15 lines modified | Offset 214, 15 lines modified | ||
214 | both·methods:</p> | 214 | both·methods:</p> |
215 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'data'</span><span·class="p">)</span> | 215 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'data'</span><span·class="p">)</span> |
216 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">fit1</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'with·analytical·derivative'</span><span·class="p">)</span> | 216 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">fit1</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'with·analytical·derivative'</span><span·class="p">)</span> |
217 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">fit2</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'without·analytical·derivative'</span><span·class="p">)</span> | 217 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">fit2</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'without·analytical·derivative'</span><span·class="p">)</span> |
218 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 218 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
219 | </pre></div> | 219 | </pre></div> |
220 | </div> | 220 | </div> |
221 | <img·src="../_images/sphx_glr_example_fit_with_derivfunc_001.png"·srcset="../_images/sphx_glr_example_fit_with_derivfunc_001.png,·../_images/sphx_glr_example_fit_with_derivfunc_001_3_00x.png·3.00x"·alt="example·fit·with·derivfunc"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 221 | <img·src="../_images/sphx_glr_example_fit_with_derivfunc_001.png"·srcset="../_images/sphx_glr_example_fit_with_derivfunc_001.png,·../_images/sphx_glr_example_fit_with_derivfunc_001_3_00x.png·3.00x"·alt="example·fit·with·derivfunc"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.292·seconds)</p> |
222 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-derivfunc-py"> | 222 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-derivfunc-py"> |
223 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 223 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
224 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a48b6f5c2c4202cb67d15a117c5eb6bc/example_fit_with_derivfunc.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_derivfunc.ipynb</span></code></a></p> | 224 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a48b6f5c2c4202cb67d15a117c5eb6bc/example_fit_with_derivfunc.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_derivfunc.ipynb</span></code></a></p> |
225 | </div> | 225 | </div> |
226 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 226 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
227 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/34710c8e386116e372179d0463d53c6a/example_fit_with_derivfunc.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_derivfunc.py</span></code></a></p> | 227 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/34710c8e386116e372179d0463d53c6a/example_fit_with_derivfunc.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_derivfunc.py</span></code></a></p> |
228 | </div> | 228 | </div> |
Offset 100, 15 lines modified | Offset 100, 15 lines modified | ||
100 | and·the·best-fit·to·the·synthetic·data·(with·added·noise)·is·the·same·for·both | 100 | and·the·best-fit·to·the·synthetic·data·(with·added·noise)·is·the·same·for·both |
101 | methods: | 101 | methods: |
102 | plt.plot(x,·data,·'o',·label='data') | 102 | plt.plot(x,·data,·'o',·label='data') |
103 | plt.plot(x,·fit1,·label='with·analytical·derivative') | 103 | plt.plot(x,·fit1,·label='with·analytical·derivative') |
104 | plt.plot(x,·fit2,·'--',·label='without·analytical·derivative') | 104 | plt.plot(x,·fit2,·'--',·label='without·analytical·derivative') |
105 | plt.legend() | 105 | plt.legend() |
106 | [example·fit·with·derivfunc] | 106 | [example·fit·with·derivfunc] |
107 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 107 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e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s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f_\x8i_\x8t_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8d_\x8e_\x8r_\x8i_\x8v_\x8f_\x8u_\x8n_\x8c_\x8._\x8p_\x8y |
110 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 110 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
111 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
112 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 112 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
113 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 113 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
114 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 114 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 200, 15 lines modified | Offset 200, 15 lines modified | ||
200 | <p>and·figure:</p> | 200 | <p>and·figure:</p> |
201 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">)</span> | 201 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="s1">'o'</span><span·class="p">)</span> |
202 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">best_fit</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'best·fit'</span><span·class="p">)</span> | 202 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">best_fit</span><span·class="p">,</span>·<span·class="s1">'--'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'best·fit'</span><span·class="p">)</span> |
203 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 203 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
204 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 204 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
205 | </pre></div> | 205 | </pre></div> |
206 | </div> | 206 | </div> |
207 | <img·src="../_images/sphx_glr_example_fit_with_inequality_001.png"·srcset="../_images/sphx_glr_example_fit_with_inequality_001.png,·../_images/sphx_glr_example_fit_with_inequality_001_3_00x.png·3.00x"·alt="example·fit·with·inequality"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 207 | <img·src="../_images/sphx_glr_example_fit_with_inequality_001.png"·srcset="../_images/sphx_glr_example_fit_with_inequality_001.png,·../_images/sphx_glr_example_fit_with_inequality_001_3_00x.png·3.00x"·alt="example·fit·with·inequality"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.524·seconds)</p> |
208 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-inequality-py"> | 208 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-fit-with-inequality-py"> |
209 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 209 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
210 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/8cc2f5f768207b7533d24c7fd6035d90/example_fit_with_inequality.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_inequality.ipynb</span></code></a></p> | 210 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/8cc2f5f768207b7533d24c7fd6035d90/example_fit_with_inequality.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_fit_with_inequality.ipynb</span></code></a></p> |
211 | </div> | 211 | </div> |
212 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 212 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
213 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/0372b8f3b0b615eb40855b665c11d339/example_fit_with_inequality.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_inequality.py</span></code></a></p> | 213 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/0372b8f3b0b615eb40855b665c11d339/example_fit_with_inequality.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_fit_with_inequality.py</span></code></a></p> |
214 | </div> | 214 | </div> |
Offset 84, 15 lines modified | Offset 84, 15 lines modified | ||
84 | ····C(cen_g,·wid_g)······=·+0.1546 | 84 | ····C(cen_g,·wid_g)······=·+0.1546 |
85 | and·figure: | 85 | and·figure: |
86 | plt.plot(x,·data,·'o') | 86 | plt.plot(x,·data,·'o') |
87 | plt.plot(x,·best_fit,·'--',·label='best·fit') | 87 | plt.plot(x,·best_fit,·'--',·label='best·fit') |
88 | plt.legend() | 88 | plt.legend() |
89 | plt.show() | 89 | plt.show() |
90 | [example·fit·with·inequality] | 90 | [example·fit·with·inequality] |
91 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 91 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.524·seconds) |
92 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f_\x8i_\x8t_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8i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x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 94 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
95 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 95 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
96 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 96 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
97 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 97 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
98 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 98 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 237, 15 lines modified | Offset 237, 15 lines modified | ||
237 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="p">,</span>·<span·class="s1">'--*'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'with·noise+outliers'</span><span·class="p">)</span> | 237 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="p">,</span>·<span·class="s1">'--*'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'with·noise+outliers'</span><span·class="p">)</span> |
238 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o1</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'sum·of·squares·fit'</span><span·class="p">)</span> | 238 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o1</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'sum·of·squares·fit'</span><span·class="p">)</span> |
239 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o2</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'robust·fit'</span><span·class="p">)</span> | 239 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">yn</span><span·class="o">+</span><span·class="n">o2</span><span·class="o">.</span><span·class="n">residual</span><span·class="p">,</span>·<span·class="s1">'-'</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'robust·fit'</span><span·class="p">)</span> |
240 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 240 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
241 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 241 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
242 | </pre></div> | 242 | </pre></div> |
243 | </div> | 243 | </div> |
244 | <img·src="../_images/sphx_glr_example_reduce_fcn_001.png"·srcset="../_images/sphx_glr_example_reduce_fcn_001.png,·../_images/sphx_glr_example_reduce_fcn_001_3_00x.png·3.00x"·alt="example·reduce·fcn"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.3 | 244 | <img·src="../_images/sphx_glr_example_reduce_fcn_001.png"·srcset="../_images/sphx_glr_example_reduce_fcn_001.png,·../_images/sphx_glr_example_reduce_fcn_001_3_00x.png·3.00x"·alt="example·reduce·fcn"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.383·seconds)</p> |
245 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-reduce-fcn-py"> | 245 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-reduce-fcn-py"> |
246 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 246 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
247 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5d125e1fb5f23aa5a5473c67a4699244/example_reduce_fcn.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_reduce_fcn.ipynb</span></code></a></p> | 247 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5d125e1fb5f23aa5a5473c67a4699244/example_reduce_fcn.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_reduce_fcn.ipynb</span></code></a></p> |
248 | </div> | 248 | </div> |
249 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 249 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
250 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d0e8e1e708ca0de18639372a3ff96a6a/example_reduce_fcn.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_reduce_fcn.py</span></code></a></p> | 250 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d0e8e1e708ca0de18639372a3ff96a6a/example_reduce_fcn.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_reduce_fcn.py</span></code></a></p> |
251 | </div> | 251 | </div> |
Offset 118, 15 lines modified | Offset 118, 15 lines modified | ||
118 | plt.plot(x,·y,·'o',·label='true·function') | 118 | plt.plot(x,·y,·'o',·label='true·function') |
119 | plt.plot(x,·yn,·'--*',·label='with·noise+outliers') | 119 | plt.plot(x,·yn,·'--*',·label='with·noise+outliers') |
120 | plt.plot(x,·yn+o1.residual,·'-',·label='sum·of·squares·fit') | 120 | plt.plot(x,·yn+o1.residual,·'-',·label='sum·of·squares·fit') |
121 | plt.plot(x,·yn+o2.residual,·'-',·label='robust·fit') | 121 | plt.plot(x,·yn+o2.residual,·'-',·label='robust·fit') |
122 | plt.legend() | 122 | plt.legend() |
123 | plt.show() | 123 | plt.show() |
124 | [example·reduce·fcn] | 124 | [example·reduce·fcn] |
125 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.3 | 125 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x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x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8r_\x8e_\x8d_\x8u_\x8c_\x8e_\x8__\x8f_\x8c_\x8n_\x8._\x8p_\x8y |
128 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 128 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
129 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 129 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
130 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 130 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
131 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 131 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
132 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 132 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 199, 15 lines modified | Offset 199, 15 lines modified | ||
199 | <span·class="n">param2_values</span>·<span·class="o">=</span>·<span·class="nb">dict</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">A1</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">sigma1</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">xc1</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">xc2</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">,</span>·<span·class="n">xw</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="n">B</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span> | 199 | <span·class="n">param2_values</span>·<span·class="o">=</span>·<span·class="nb">dict</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">A1</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">sigma1</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">xc1</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">xc2</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">,</span>·<span·class="n">xw</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="n">B</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span> |
200 | <span·class="n">res2</span>·<span·class="o">=</span>·<span·class="n">lm_mod</span><span·class="o">.</span><span·class="n">fit</span><span·class="p">(</span><span·class="n">data</span><span·class="o">=</span><span·class="n">yn</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">param2_values</span><span·class="p">)</span> | 200 | <span·class="n">res2</span>·<span·class="o">=</span>·<span·class="n">lm_mod</span><span·class="o">.</span><span·class="n">fit</span><span·class="p">(</span><span·class="n">data</span><span·class="o">=</span><span·class="n">yn</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">param2_values</span><span·class="p">)</span> |
201 | <span·class="n">res2</span><span·class="o">.</span><span·class="n">plot_fit</span><span·class="p">()</span> | 201 | <span·class="n">res2</span><span·class="o">.</span><span·class="n">plot_fit</span><span·class="p">()</span> |
202 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'true'</span><span·class="p">)</span> | 202 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s1">'true'</span><span·class="p">)</span> |
203 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 203 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
204 | </pre></div> | 204 | </pre></div> |
205 | </div> | 205 | </div> |
206 | <img·src="../_images/sphx_glr_example_sympy_003.png"·srcset="../_images/sphx_glr_example_sympy_003.png,·../_images/sphx_glr_example_sympy_003_3_00x.png·3.00x"·alt="Model(_lambdifygenerated)"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1. | 206 | <img·src="../_images/sphx_glr_example_sympy_003.png"·srcset="../_images/sphx_glr_example_sympy_003.png,·../_images/sphx_glr_example_sympy_003_3_00x.png·3.00x"·alt="Model(_lambdifygenerated)"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1.301·seconds)</p> |
207 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-sympy-py"> | 207 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-sympy-py"> |
208 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 208 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
209 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/6069607ae016c4f4f055d1c8dfd4bfa7/example_sympy.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_sympy.ipynb</span></code></a></p> | 209 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/6069607ae016c4f4f055d1c8dfd4bfa7/example_sympy.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_sympy.ipynb</span></code></a></p> |
210 | </div> | 210 | </div> |
211 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 211 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
212 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ecc08a53d28f5c81caa3656731ba5657/example_sympy.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_sympy.py</span></code></a></p> | 212 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ecc08a53d28f5c81caa3656731ba5657/example_sympy.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_sympy.py</span></code></a></p> |
213 | </div> | 213 | </div> |
Offset 82, 15 lines modified | Offset 82, 15 lines modified | ||
82 | lm_mod·=·lmfit.Model(model2_func,·independent_vars=('x')) | 82 | lm_mod·=·lmfit.Model(model2_func,·independent_vars=('x')) |
83 | param2_values·=·dict(x=x,·A1=2,·sigma1=1,·xc1=2,·xc2=5,·xw=4,·B=5) | 83 | param2_values·=·dict(x=x,·A1=2,·sigma1=1,·xc1=2,·xc2=5,·xw=4,·B=5) |
84 | res2·=·lm_mod.fit(data=yn,·**param2_values) | 84 | res2·=·lm_mod.fit(data=yn,·**param2_values) |
85 | res2.plot_fit() | 85 | res2.plot_fit() |
86 | plt.plot(x,·y,·label='true') | 86 | plt.plot(x,·y,·label='true') |
87 | plt.legend() | 87 | plt.legend() |
88 | [Model(_lambdifygenerated)] | 88 | [Model(_lambdifygenerated)] |
89 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1. | 89 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1.301·seconds) |
90 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8s_\x8y_\x8m_\x8p_\x8y_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 90 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8s_\x8y_\x8m_\x8p_\x8y_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
91 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8s_\x8y_\x8m_\x8p_\x8y_\x8._\x8p_\x8y | 91 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8s_\x8y_\x8m_\x8p_\x8y_\x8._\x8p_\x8y |
92 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 92 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
93 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
94 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 94 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
95 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 95 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
96 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 96 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 350, 15 lines modified | Offset 350, 15 lines modified | ||
350 | <span·class="k">for</span>·<span·class="n">ax</span>·<span·class="ow">in</span>·<span·class="n">axs</span><span·class="o">.</span><span·class="n">ravel</span><span·class="p">():</span> | 350 | <span·class="k">for</span>·<span·class="n">ax</span>·<span·class="ow">in</span>·<span·class="n">axs</span><span·class="o">.</span><span·class="n">ravel</span><span·class="p">():</span> |
351 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="s1">'x'</span><span·class="p">)</span> | 351 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="s1">'x'</span><span·class="p">)</span> |
352 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="s1">'y'</span><span·class="p">)</span> | 352 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="s1">'y'</span><span·class="p">)</span> |
353 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">remove</span><span·class="p">()</span> | 353 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">remove</span><span·class="p">()</span> |
354 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 354 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
355 | </pre></div> | 355 | </pre></div> |
356 | </div> | 356 | </div> |
357 | <img·src="../_images/sphx_glr_example_two_dimensional_peak_004.png"·srcset="../_images/sphx_glr_example_two_dimensional_peak_004.png,·../_images/sphx_glr_example_two_dimensional_peak_004_3_00x.png·3.00x"·alt="Data,·Fit,·Data·-·Fit"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 357 | <img·src="../_images/sphx_glr_example_two_dimensional_peak_004.png"·srcset="../_images/sphx_glr_example_two_dimensional_peak_004.png,·../_images/sphx_glr_example_two_dimensional_peak_004_3_00x.png·3.00x"·alt="Data,·Fit,·Data·-·Fit"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·4.081·seconds)</p> |
358 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-two-dimensional-peak-py"> | 358 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-two-dimensional-peak-py"> |
359 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 359 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
360 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ee6bdfefbd3fee18a7b2cb99c291f27e/example_two_dimensional_peak.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_two_dimensional_peak.ipynb</span></code></a></p> | 360 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ee6bdfefbd3fee18a7b2cb99c291f27e/example_two_dimensional_peak.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_two_dimensional_peak.ipynb</span></code></a></p> |
361 | </div> | 361 | </div> |
362 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 362 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
363 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/87be2ee5d3294a608face2290f955fe3/example_two_dimensional_peak.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_two_dimensional_peak.py</span></code></a></p> | 363 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/87be2ee5d3294a608face2290f955fe3/example_two_dimensional_peak.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_two_dimensional_peak.py</span></code></a></p> |
364 | </div> | 364 | </div> |
Offset 219, 15 lines modified | Offset 219, 15 lines modified | ||
219 | for·ax·in·axs.ravel(): | 219 | for·ax·in·axs.ravel(): |
220 | ····ax.set_xlabel('x') | 220 | ····ax.set_xlabel('x') |
221 | ····ax.set_ylabel('y') | 221 | ····ax.set_ylabel('y') |
222 | axs[1,·1].remove() | 222 | axs[1,·1].remove() |
223 | plt.show() | 223 | plt.show() |
224 | [Data,·Fit,·Data·-·Fit] | 224 | [Data,·Fit,·Data·-·Fit] |
225 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 225 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·4.081·seconds) |
226 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8w_\x8o_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_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r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 228 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
229 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 229 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
230 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 230 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
231 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 231 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
232 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 232 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 175, 15 lines modified | Offset 175, 15 lines modified | ||
175 | ····C(amplitude,·sigma)·=·+0.7087 | 175 | ····C(amplitude,·sigma)·=·+0.7087 |
176 | </pre></div> | 176 | </pre></div> |
177 | </div> | 177 | </div> |
178 | <p>and·plot·below:</p> | 178 | <p>and·plot·below:</p> |
179 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">result</span><span·class="o">.</span><span·class="n">plot_fit</span><span·class="p">()</span> | 179 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="n">result</span><span·class="o">.</span><span·class="n">plot_fit</span><span·class="p">()</span> |
180 | </pre></div> | 180 | </pre></div> |
181 | </div> | 181 | </div> |
182 | <img·src="../_images/sphx_glr_example_use_pandas_001.png"·srcset="../_images/sphx_glr_example_use_pandas_001.png,·../_images/sphx_glr_example_use_pandas_001_3_00x.png·3.00x"·alt="Model(lorentzian)"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 182 | <img·src="../_images/sphx_glr_example_use_pandas_001.png"·srcset="../_images/sphx_glr_example_use_pandas_001.png,·../_images/sphx_glr_example_use_pandas_001_3_00x.png·3.00x"·alt="Model(lorentzian)"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.552·seconds)</p> |
183 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-use-pandas-py"> | 183 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-examples-example-use-pandas-py"> |
184 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 184 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
185 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5adbaff47e6aef0917d3da79f59fba26/example_use_pandas.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_use_pandas.ipynb</span></code></a></p> | 185 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5adbaff47e6aef0917d3da79f59fba26/example_use_pandas.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">example_use_pandas.ipynb</span></code></a></p> |
186 | </div> | 186 | </div> |
187 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 187 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
188 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/67e6ee8d13b1ad43c31b4b2dc6d01d54/example_use_pandas.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_use_pandas.py</span></code></a></p> | 188 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/67e6ee8d13b1ad43c31b4b2dc6d01d54/example_use_pandas.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">example_use_pandas.py</span></code></a></p> |
189 | </div> | 189 | </div> |
Offset 61, 15 lines modified | Offset 61, 15 lines modified | ||
61 | ····height:·····10.7899573·+/-·0.17160652·(1.59%)·==·'0.3183099*amplitude/max | 61 | ····height:·····10.7899573·+/-·0.17160652·(1.59%)·==·'0.3183099*amplitude/max |
62 | (1e-15,·sigma)' | 62 | (1e-15,·sigma)' |
63 | [[Correlations]]·(unreported·correlations·are·<·0.100) | 63 | [[Correlations]]·(unreported·correlations·are·<·0.100) |
64 | ····C(amplitude,·sigma)·=·+0.7087 | 64 | ····C(amplitude,·sigma)·=·+0.7087 |
65 | and·plot·below: | 65 | and·plot·below: |
66 | result.plot_fit() | 66 | result.plot_fit() |
67 | [Model(lorentzian)] | 67 | [Model(lorentzian)] |
68 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 68 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x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x8a_\x8n_\x8d_\x8a_\x8s_\x8._\x8p_\x8y |
71 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 71 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
72 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 72 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
73 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x | 73 | ····*·_\x8i_\x8n_\x8d_\x8e_\x8x |
74 | ····*·_\x8n_\x8e_\x8x_\x8t·| | 74 | ····*·_\x8n_\x8e_\x8x_\x8t·| |
75 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| | 75 | ····*·_\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·| |
Offset 1319, 15 lines modified | Offset 1319, 15 lines modified | ||
1319 | ········"01542118":·19, | 1319 | ········"01542118":·19, |
1320 | ········"01617042":·19, | 1320 | ········"01617042":·19, |
1321 | ········"01680902":·19, | 1321 | ········"01680902":·19, |
1322 | ········"01835867":·20, | 1322 | ········"01835867":·20, |
1323 | ········"01907800":·19, | 1323 | ········"01907800":·19, |
1324 | ········"01951689":·11, | 1324 | ········"01951689":·11, |
1325 | ········"02":·[4,·6,·7,·8,·14,·25,·26], | 1325 | ········"02":·[4,·6,·7,·8,·14,·25,·26], |
1326 | ········"020":·[8,·30], | 1326 | ········"020":·[7,·8,·30], |
1327 | ········"02005946":·17, | 1327 | ········"02005946":·17, |
1328 | ········"02079709":·10, | 1328 | ········"02079709":·10, |
1329 | ········"021":·13, | 1329 | ········"021":·13, |
1330 | ········"02190772":·19, | 1330 | ········"02190772":·19, |
1331 | ········"02273421":·12, | 1331 | ········"02273421":·12, |
1332 | ········"02279089":·12, | 1332 | ········"02279089":·12, |
1333 | ········"02296733":·12, | 1333 | ········"02296733":·12, |
Offset 1381, 14 lines modified | Offset 1381, 15 lines modified | ||
1381 | ········"06306004":·5, | 1381 | ········"06306004":·5, |
1382 | ········"0700":·14, | 1382 | ········"0700":·14, |
1383 | ········"0708269":·8, | 1383 | ········"0708269":·8, |
1384 | ········"07083":·8, | 1384 | ········"07083":·8, |
1385 | ········"0726e":·8, | 1385 | ········"0726e":·8, |
1386 | ········"0737250":·20, | 1386 | ········"0737250":·20, |
1387 | ········"07386098":·12, | 1387 | ········"07386098":·12, |
1388 | ········"081":·19, | ||
1388 | ········"08260274":·12, | 1389 | ········"08260274":·12, |
1389 | ········"08533642":·7, | 1390 | ········"08533642":·7, |
1390 | ········"0870":·14, | 1391 | ········"0870":·14, |
1391 | ········"08937623":·9, | 1392 | ········"08937623":·9, |
1392 | ········"08992736":·13, | 1393 | ········"08992736":·13, |
1393 | ········"0913":·5, | 1394 | ········"0913":·5, |
1394 | ········"09130423":·5, | 1395 | ········"09130423":·5, |
Offset 1503, 15 lines modified | Offset 1504, 14 lines modified | ||
1503 | ········"1875":·6, | 1504 | ········"1875":·6, |
1504 | ········"18756":·14, | 1505 | ········"18756":·14, |
1505 | ········"1877635":·13, | 1506 | ········"1877635":·13, |
1506 | ········"19":·[1,·12,·13,·14,·27], | 1507 | ········"19":·[1,·12,·13,·14,·27], |
1507 | ········"192":·[6,·20], | 1508 | ········"192":·[6,·20], |
1508 | ········"1936":·16, | 1509 | ········"1936":·16, |
1509 | ········"19401928":·10, | 1510 | ········"19401928":·10, |
1510 | ········"195":·18, | ||
1511 | ········"19580":·11, | 1511 | ········"19580":·11, |
1512 | ········"1967107":·13, | 1512 | ········"1967107":·13, |
1513 | ········"199":·6, | 1513 | ········"199":·6, |
1514 | ········"1d":·[2,·12,·32], | 1514 | ········"1d":·[2,·12,·32], |
1515 | ········"1e":·[13,·19,·20,·25], | 1515 | ········"1e":·[13,·19,·20,·25], |
1516 | ········"1j":·7, | 1516 | ········"1j":·7, |
1517 | ········"2":·[0,·3,·4,·5,·6,·8,·9,·10,·11,·12,·13,·14,·15,·16,·17,·18,·19,·20,·22,·23,·24,·25,·26,·27,·28,·29,·30], | 1517 | ········"2":·[0,·3,·4,·5,·6,·8,·9,·10,·11,·12,·13,·14,·15,·16,·17,·18,·19,·20,·22,·23,·24,·25,·26,·27,·28,·29,·30], |
Offset 1563, 102 lines modified | Offset 1563, 101 lines modified | ||
1563 | ········"24259071":·5, | 1563 | ········"24259071":·5, |
1564 | ········"24334895":·5, | 1564 | ········"24334895":·5, |
1565 | ········"24410753":·14, | 1565 | ········"24410753":·14, |
1566 | ········"24638":·8, | 1566 | ········"24638":·8, |
1567 | ········"2464":·19, | 1567 | ········"2464":·19, |
1568 | ········"247":·7, | 1568 | ········"247":·7, |
1569 | ········"2474265369565":·7, | 1569 | ········"2474265369565":·7, |
1570 | ········"249":·8, | ||
1570 | ········"24998843":·6, | 1571 | ········"24998843":·6, |
1571 | ········"24999772":·6, | 1572 | ········"24999772":·6, |
1572 | ········"24999999":·6, | 1573 | ········"24999999":·6, |
1573 | ········"25":·[1,·6,·8,·12,·19,·20,·29], | 1574 | ········"25":·[1,·6,·8,·12,·19,·20,·29], |
1574 | ········"250":·[8,·14,·17,·22,·23], | 1575 | ········"250":·[8,·14,·17,·22,·23], |
1575 | ········"2500":·8, | 1576 | ········"2500":·8, |
1576 | ········"253":·6, | ||
1577 | ········"254":·11, | ||
1578 | ········"2575":·12, | 1577 | ········"2575":·12, |
1579 | ········"25755570":·12, | 1578 | ········"25755570":·12, |
1580 | ········"26":·[6,·12,·13,·14,·19], | 1579 | ········"26":·[6,·12,·13,·14,·19], |
1581 | ········"26179939":·6, | 1580 | ········"26179939":·6, |
1582 | ········"263":·9, | 1581 | ········"263":·9, |
1583 | ········"26503":·13, | 1582 | ········"26503":·13, |
1584 | ········"26606":·19, | 1583 | ········"26606":·19, |
1585 | ········"2664":·12, | 1584 | ········"2664":·12, |
1586 | ········"268":·9, | 1585 | ········"268":·9, |
1587 | ········"27":·[4,·8,·16,·19,·26], | 1586 | ········"27":·[4,·8,·16,·19,·26], |
1588 | ········"2722842":·16, | 1587 | ········"2722842":·16, |
1589 | ········"2761":·16, | 1588 | ········"2761":·16, |
1590 | ········"27 | 1589 | ········"279":·12, |
1591 | ········"27s_t":·1, | 1590 | ········"27s_t":·1, |
1592 | ········"28":·[5,·23,·27], | 1591 | ········"28":·[5,·23,·27], |
1593 | ········"280":·14, | ||
1594 | ········"28002384":·5, | 1592 | ········"28002384":·5, |
1595 | ········"28378389":·19, | 1593 | ········"28378389":·19, |
1596 | ········"284":·20, | ||
1597 | ········"28588":·11, | 1594 | ········"28588":·11, |
1598 | ········"2887":·13, | 1595 | ········"2887":·13, |
1599 | ········"28904676":·19, | 1596 | ········"28904676":·19, |
1600 | ········"29":·16, | 1597 | ········"29":·16, |
1601 | ········"2913":·13, | 1598 | ········"2913":·13, |
1602 | ········"2919":·12, | 1599 | ········"2919":·12, |
1600 | ········"292":·15, | ||
1603 | ········"294636":·7, | 1601 | ········"294636":·7, |
1604 | ········"295":·1, | 1602 | ········"295":·1, |
1605 | ········"2951":·16, | 1603 | ········"2951":·16, |
1606 | ········"2968":·12, | 1604 | ········"2968":·12, |
1607 | ········"2_":·[2,·25], | 1605 | ········"2_":·[2,·25], |
1608 | ········"2_0":·2, | 1606 | ········"2_0":·2, |
1609 | ········"2_f":·2, | 1607 | ········"2_f":·2, |
1610 | ········"2j":·7, | 1608 | ········"2j":·7, |
1611 | ········"2jq":·7, | 1609 | ········"2jq":·7, |
1612 | ········"3":·[2,·3,·4,·5,·6,·7,·8,·9,·10,·11,·12,·13,·15,·16,·17,·18,·19,·20,·22,·23,·25,·26,·27,·29,·30], | 1610 | ········"3":·[2,·3,·4,·5,·6,·7,·8,·9,·10,·11,·12,·13,·15,·16,·17,·18,·19,·20,·22,·23,·25,·26,·27,·29,·30], |
1613 | ········"30":·[8,·9,·13,·19], | 1611 | ········"30":·[8,·9,·13,·19], |
1614 | ········"300":·[1,·15,·22,·32], | 1612 | ········"300":·[1,·15,·22,·32], |
1615 | ········"301":·6, | 1613 | ········"301":·[6,·18], |
1616 | ········"3037":·14, | 1614 | ········"3037":·14, |
1617 | ········"3046":·19, | 1615 | ········"3046":·19, |
1618 | ········"3055":·13, | 1616 | ········"3055":·13, |
1619 | ········"3058":·14, | 1617 | ········"3058":·14, |
1620 | ········"30899694":·6, | 1618 | ········"30899694":·6, |
1621 | ········"309":·[12,·13], | ||
1622 | ········"310":·22, | 1619 | ········"310":·22, |
1623 | ········"31007537":·20, | 1620 | ········"31007537":·20, |
1624 | ········"3117":·7, | 1621 | ········"3117":·7, |
1625 | ········"31249964":·6, | 1622 | ········"31249964":·6, |
1626 | ········"3146":·7, | 1623 | ········"3146":·7, |
1627 | ········"317":·17, | ||
1628 | ········"3183099":·[13,·20], | 1624 | ········"3183099":·[13,·20], |
1629 | ········"32":·[12,·17], | 1625 | ········"32":·[12,·17], |
1630 | ········"3200":·29, | 1626 | ········"3200":·29, |
1631 | ········"32192128":·13, | 1627 | ········"32192128":·13, |
1632 | ········"32742010":·12, | 1628 | ········"32742010":·12, |
1633 | ········"32980958":·8, | 1629 | ········"32980958":·8, |
1634 | ········"32981":·8, | 1630 | ········"32981":·8, |
1635 | ········"33":·[8,·12,·17], | 1631 | ········"33":·[8,·12,·17], |
1636 | ········"33162347":·17, | 1632 | ········"33162347":·17, |
1637 | ········"3342":·19, | 1633 | ········"3342":·19, |
1638 | ········"34443083":·12, | 1634 | ········"34443083":·12, |
1639 | ········"3445":·16, | 1635 | ········"3445":·16, |
Max diff block lines reached; 4056/7344 bytes (55.23%) of diff not shown. |