14 for (
int i = 0;
i <
size; ++
i) {
19 fn = (x - par[0]) / (par[1] * 1.4142);
20 fn = N * (1. - TMath::Erf(fn)) / 2.;
23 chi2 += diff * diff / (er * er);
29 LogDebug(
"CSC") <<
" AFEB threshold fit " <<
i + 1 <<
" " << x <<
" " << y <<
" " << er <<
" " << fn <<
" " << chi2
30 <<
" " << par[0] <<
" " << par[1] <<
"\n";
std::vector< float > ydata
double operator()(const std::vector< double > &) const override
Provide the chi-squared function for the given data.
std::vector< float > xdata
data
tuple size
Write out results.