BornAgain  1.18.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 scattering at grazing incidence
4 //
5 //! @file Device/Intensity/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 BORNAGAIN_CORE_INTENSITY_IINTENSITYFUNCTION_H
17 #define BORNAGAIN_CORE_INTENSITY_IINTENSITYFUNCTION_H
18 
19 //! Interface for applying arbitrary function to the measured intensity.
20 //! @ingroup algorithms_internal
21 
23 {
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 {
35 public:
36  virtual IntensityFunctionLog* clone() const;
37  virtual double evaluate(double value) const;
38 };
39 
40 //! Algorithm for applying sqrt function to the measured intensity.
41 //! @ingroup algorithms_internal
42 
44 {
45 public:
46  virtual IntensityFunctionSqrt* clone() const;
47  virtual double evaluate(double value) const;
48 };
49 
50 #endif // BORNAGAIN_CORE_INTENSITY_IINTENSITYFUNCTION_H
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