BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FitOptions.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Fit/Kernel/FitOptions.h
6 //! @brief Defines class FitOptions.
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_FITOPTIONS_H
16 #define BORNAGAIN_FIT_KERNEL_FITOPTIONS_H
17 
18 //! General fitting options.
19 
21 {
22 public:
23  FitOptions();
24 
25  double derivEpsilon() const;
26  void setDerivEpsilon(double deriv_epsilon);
27 
28  double stepFactor() const;
29  void setStepFactor(double step_factor);
30 
31 private:
32  double m_deriv_epsilon; //!< epsilon for derivative calculation
33  double m_step_factor; //!< default relative parameter step
34 };
35 
36 #endif // BORNAGAIN_FIT_KERNEL_FITOPTIONS_H
General fitting options.
Definition: FitOptions.h:21
double derivEpsilon() const
Definition: FitOptions.cpp:34
double m_deriv_epsilon
epsilon for derivative calculation
Definition: FitOptions.h:32
void setDerivEpsilon(double deriv_epsilon)
Definition: FitOptions.cpp:29
double stepFactor() const
Definition: FitOptions.cpp:24
void setStepFactor(double step_factor)
Definition: FitOptions.cpp:19
double m_step_factor
default relative parameter step
Definition: FitOptions.h:33