BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IIntensityFunction.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Core/Residual/IIntensityFunction.h
6 //! @brief Defines and implements the interface class IIntensityFunction
7 //! and its child classes IntensityFunctionLog, IntensityFunctionSqrt
8 //!
9 //! @homepage http://www.bornagainproject.org
10 //! @license GNU General Public License v3 or higher (see COPYING)
11 //! @copyright Forschungszentrum Jülich GmbH 2018
12 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
13 //
14 // ************************************************************************************************
15 
16 #ifndef USER_API
17 #ifndef BORNAGAIN_CORE_RESIDUAL_IINTENSITYFUNCTION_H
18 #define BORNAGAIN_CORE_RESIDUAL_IINTENSITYFUNCTION_H
19 
20 //! Interface for applying arbitrary function to the measured intensity.
21 //! @ingroup algorithms_internal
22 
24 public:
26  virtual IIntensityFunction* clone() const = 0;
27  virtual double evaluate(double value) const = 0;
28 };
29 
30 //! Algorithm for applying log function to the measured intensity.
31 //! @ingroup algorithms_internal
32 
34 public:
35  virtual IntensityFunctionLog* clone() const;
36  virtual double evaluate(double value) const;
37 };
38 
39 //! Algorithm for applying sqrt function to the measured intensity.
40 //! @ingroup algorithms_internal
41 
43 public:
44  virtual IntensityFunctionSqrt* clone() const;
45  virtual double evaluate(double value) const;
46 };
47 
48 #endif // BORNAGAIN_CORE_RESIDUAL_IINTENSITYFUNCTION_H
49 #endif // USER_API
Interface for applying arbitrary function to the measured intensity.
virtual ~IIntensityFunction()
virtual double evaluate(double value) const =0
virtual IIntensityFunction * clone() const =0
Algorithm for applying log function to the measured intensity.
virtual IntensityFunctionLog * clone() const
virtual double evaluate(double value) const
Algorithm for applying sqrt function to the measured intensity.
virtual IntensityFunctionSqrt * clone() const
virtual double evaluate(double value) const