40 fFitterTarget( target ),
43 for (
Int_t i=0; i< maxpar; i++ ) {
53 for (
Int_t ipar=0; ipar<fNumPar; ipar++) fParameters[ipar] = par[ipar];
55 f = fFitterTarget.EstimatorFunction( fParameters );
67 mnexcm(command,args,nargs,ierr);
93 mnstat(amin,edm,errdef,nvpar,nparx,ierr);
108 mnerrs(ipar,
eplus,eminus,eparab,globcc);
125 mnparm(ipar,parname,value,verr,vlow,vhigh,ierr);
Interface for a fitter 'target'.
Int_t ExecuteCommand(const char *command, Double_t *args, Int_t nargs)
Execute a fitter command; command : command string args : list of nargs command arguments.
IFitterTarget & fFitterTarget
Int_t SetParameter(Int_t ipar, const char *parname, Double_t value, Double_t verr, Double_t vlow, Double_t vhigh)
set initial values for a parameter
MinuitWrapper(IFitterTarget &target, Int_t maxpar)
constructor
void Clear(Option_t *=0)
reset the fitter environment
Int_t Eval(Int_t, Double_t *, Double_t &, Double_t *, Int_t)
std::vector<Double_t> parameters( npar );
std::vector< Double_t > fParameters
TObject * Clone(char const *) const
produces a clone of this MinuitWrapper
Int_t GetStats(Double_t &amin, Double_t &edm, Double_t &errdef, Int_t &nvpar, Int_t &nparx)
return global fit parameters
Int_t GetErrors(Int_t ipar, Double_t &eplus, Double_t &eminus, Double_t &eparab, Double_t &globcc)
return current errors for a parameter
Implementation in C++ of the Minuit package written by Fred James.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Mother of all ROOT objects.
static constexpr double eplus