mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
docs: correlator examples updated with additional calls to gamma_method
This commit is contained in:
parent
5f86aaba4b
commit
199df2b344
2 changed files with 7 additions and 3 deletions
|
@ -68,7 +68,8 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"my_correlator = pe.Corr(correlator_data)"
|
"my_correlator = pe.Corr(correlator_data)\n",
|
||||||
|
"my_correlator.gamma_method()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"fP = pe.Corr(pe.input.json.load_json(\"./data/f_P\"), padding=[1, 1])"
|
"fP = pe.Corr(pe.input.json.load_json(\"./data/f_P\"), padding=[1, 1])\n",
|
||||||
|
"fP.gamma_method()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -116,6 +117,7 @@
|
||||||
"stop_fit = 18\n",
|
"stop_fit = 18\n",
|
||||||
"\n",
|
"\n",
|
||||||
"fit_result = fP.fit(func_exp, [start_fit, stop_fit], resplot=True)\n",
|
"fit_result = fP.fit(func_exp, [start_fit, stop_fit], resplot=True)\n",
|
||||||
|
"fit_result.gamma_method()\n",
|
||||||
"print(\"\\n\", fit_result)"
|
"print(\"\\n\", fit_result)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -197,6 +199,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
|
"m_eff_fP.gamma_method()\n",
|
||||||
"m_eff_plateau = m_eff_fP.plateau([start_fit, stop_fit])\n",
|
"m_eff_plateau = m_eff_fP.plateau([start_fit, stop_fit])\n",
|
||||||
"m_eff_plateau.gamma_method()\n",
|
"m_eff_plateau.gamma_method()\n",
|
||||||
"print()\n",
|
"print()\n",
|
||||||
|
@ -320,7 +323,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"beta = pe.fits.odr_fit(ox, oy, func)\n",
|
"beta = pe.fits.total_least_squares(ox, oy, func)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"for i, item in enumerate(beta):\n",
|
"for i, item in enumerate(beta):\n",
|
||||||
" item.gamma_method()\n",
|
" item.gamma_method()\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue