13 #ifndef ROOT_Fit_BasicFCN 14 #define ROOT_Fit_BasicFCN 16 #ifndef ROOT_Math_FitMethodFunction 20 #ifndef ROOT_Math_IParamFunction 43 template<
class FunType,
class DataType>
57 BasicFCN (
const std::shared_ptr<DataType> &
data,
const std::shared_ptr<IModelFunction> &
func) :
58 BaseObjFunction(func->
NPar(), data->
Size() ),
74 virtual const DataType &
Data()
const {
return *
fData; }
97 std::shared_ptr<DataType>
fData;
98 std::shared_ptr<IModelFunction>
fFunc;
::ROOT::Math::BasicFitMethodFunction< FunType > BaseObjFunction
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
virtual const IModelFunction & ModelFunction() const
access to const reference to the model function
void SetModelFunction(const std::shared_ptr< IModelFunction > &func)
Set the function pointer.
BasicFCN(const std::shared_ptr< DataType > &data, const std::shared_ptr< IModelFunction > &func)
Constructor from data set and model function.
std::shared_ptr< DataType > fData
std::shared_ptr< IModelFunction > fFunc
virtual const DataType & Data() const
access to const reference to the data
void SetData(const std::shared_ptr< DataType > &data)
Set the data pointer.
BasicFCN class: base class for the objective functions used in the fits It has a reference to the dat...
std::shared_ptr< IModelFunction > ModelFunctionPtr() const
access to function pointer
FunType ::BaseFunc BaseFunction
FitMethodFunction class Interface for objective functions (like chi2 and likelihood used in the fit) ...
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
double func(double *x, double *p)
::ROOT::Math::IParamMultiFunction IModelFunction
IParametricFunctionMultiDim IParamMultiFunction
BaseObjFunction::BaseFunction BaseFunction
std::shared_ptr< DataType > DataPtr() const
access to data pointer
virtual ~BasicFCN()
Destructor (no operations)