15 #ifndef BORNAGAIN_FIT_ROOTADAPTER_RESIDUALFUNCTIONADAPTER_H
16 #define BORNAGAIN_FIT_ROOTADAPTER_RESIDUALFUNCTIONADAPTER_H
41 void calculate_gradients(
const std::vector<double>& pars);
42 std::vector<double> get_residuals(
const std::vector<double>& pars);
45 double element_residual(
const std::vector<double>& pars,
unsigned int index,
46 std::vector<double>& gradients);
48 double chi2(
const std::vector<double>& pars);
54 std::vector<double> m_residuals;
55 std::vector<std::vector<double>> m_gradients;
56 std::unique_ptr<RootResidualFunction> m_root_objective;
Defines class IFunctionAdapter.
Defines common types for fitting library.
Defines class Parameters.
Base class for objective function adapters, which converts user functions to minimize into the functi...
A collection of fit parameters.
Provides RootResidualFunction which will be minimizer by ROOT.
Minimizer function with access to single data element residuals, required by Fumili2 and GSLMultiMin ...
Objective function types.