BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ResolutionFunction2DGaussian.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Device/Resolution/ResolutionFunction2DGaussian.h
6 //! @brief Defines class ResolutionFunction2DGaussian.
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_DEVICE_RESOLUTION_RESOLUTIONFUNCTION2DGAUSSIAN_H
16 #define BORNAGAIN_DEVICE_RESOLUTION_RESOLUTIONFUNCTION2DGAUSSIAN_H
17 
19 
20 //! Simple gaussian two-dimensional resolution function.
21 //! @ingroup algorithms_internal
22 
24 public:
25  ResolutionFunction2DGaussian(double sigma_x, double sigma_y);
26 
27  virtual double evaluateCDF(double x, double y) const;
28 
30  {
32  }
33 
34  void accept(INodeVisitor* visitor) const final { visitor->visit(this); }
35 
36  double getSigmaX() const { return m_sigma_x; }
37  double getSigmaY() const { return m_sigma_y; }
38 
39 private:
41 
42  double m_sigma_x;
43  double m_sigma_y;
44 };
45 
46 #endif // BORNAGAIN_DEVICE_RESOLUTION_RESOLUTIONFUNCTION2DGAUSSIAN_H
Defines interface class IResolutionFunction2D.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
Interface providing two-dimensional resolution function.
Simple gaussian two-dimensional resolution function.
ResolutionFunction2DGaussian & operator=(const ResolutionFunction2DGaussian &)
ResolutionFunction2DGaussian(double sigma_x, double sigma_y)
ResolutionFunction2DGaussian * clone() const
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
virtual double evaluateCDF(double x, double y) const