docs: correlator examples updated with additional calls to gamma_method

This commit is contained in:
Fabian Joswig 2022-02-15 13:38:22 +00:00
parent 5f86aaba4b
commit 199df2b344
2 changed files with 7 additions and 3 deletions

View file

@ -68,7 +68,8 @@
"metadata": {},
"outputs": [],
"source": [
"my_correlator = pe.Corr(correlator_data)"
"my_correlator = pe.Corr(correlator_data)\n",
"my_correlator.gamma_method()"
]
},
{

View file

@ -46,7 +46,8 @@
}
],
"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",
"\n",
"fit_result = fP.fit(func_exp, [start_fit, stop_fit], resplot=True)\n",
"fit_result.gamma_method()\n",
"print(\"\\n\", fit_result)"
]
},
@ -197,6 +199,7 @@
}
],
"source": [
"m_eff_fP.gamma_method()\n",
"m_eff_plateau = m_eff_fP.plateau([start_fit, stop_fit])\n",
"m_eff_plateau.gamma_method()\n",
"print()\n",
@ -320,7 +323,7 @@
}
],
"source": [
"beta = pe.fits.odr_fit(ox, oy, func)\n",
"beta = pe.fits.total_least_squares(ox, oy, func)\n",
"\n",
"for i, item in enumerate(beta):\n",
" item.gamma_method()\n",