BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IFunctionAdapter.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Fit/Kernel/IFunctionAdapter.h
6 //! @brief Defines class IFunctionAdapter.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_FIT_KERNEL_IFUNCTIONADAPTER_H
16 #define BORNAGAIN_FIT_KERNEL_IFUNCTIONADAPTER_H
17 
18 namespace Fit
19 {
20 
21 //! Base class for objective function adapters, which converts user functions
22 //! to minimize into the function which minimization machinery expects.
23 
25 {
26 public:
28  virtual ~IFunctionAdapter();
29 
30  int numberOfCalls() const;
31  int numberOfGradientCalls() const;
32 
33 protected:
36 };
37 
38 } // namespace Fit
39 
40 #endif // BORNAGAIN_FIT_KERNEL_IFUNCTIONADAPTER_H
Base class for objective function adapters, which converts user functions to minimize into the functi...
virtual ~IFunctionAdapter()
int numberOfGradientCalls() const
Objective function types.