****************************************
Minimizer is Minuit2 / Migrad
MinFCN = 903.174
NDf = 0
Edm = 8.44652e-07
NCalls = 65
x0 = 0.00667903 +/- 0.0141774
y0 = 0.00535479 +/- 0.0141954
R = 3.995 +/- 0.0100048
void fitCircle(
int n=10000) {
if (
n> 999)
gr->SetMarkerStyle(1);
else gr->SetMarkerStyle(3);
r.Circle(
x,
y,
r.Gaus(4,0.3));
}
c1->DrawFrame(-5,-5,5,5);
auto chi2Function = [&](const double *par) {
for (int i=0;i<np;i++) {
double u =
x[i] - par[0];
double v =
y[i] - par[1];
double dr = par[2] - std::sqrt(u*u+
v*
v);
}
};
double pStart[3] = {0,0,1};
if (!ok) {
Error(
"line3Dfit",
"Line3D Fit failed");
}
}
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
const ParameterSettings & ParSettings(unsigned int i) const
get the parameter settings for the i-th parameter (const method)
class containing the result of the fit and all the related information (fitted parameter values,...
void Print(std::ostream &os, bool covmat=false) const
print the result and optionally covariance matrix and correlations
double Parameter(unsigned int i) const
parameter value by index
Fitter class, entry point for performing all type of fits.
const FitResult & Result() const
get fit result
bool FitFCN(unsigned int npar, Function &fcn, const double *params=nullptr, unsigned int dataSize=0, int fitType=0)
Fit using the a generic FCN function as a C++ callable object implementing double () (const double *)...
const FitConfig & Config() const
access to the fit configuration (const method)
bool SetFCN(unsigned int npar, Function &fcn, const double *params=nullptr, unsigned int dataSize=0, int fitType=0)
Set a generic FCN function as a C++ callable object implementing double () (const double *) Note that...
void SetName(const std::string &name)
interaction
Documentation for class Functor class.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void Draw(Option_t *option="") override
Default Draw method for all objects.
Random number generator class based on M.