BornAgain  1.18.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 scattering at grazing incidence
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_CORE_DETECTOR_RESOLUTIONFUNCTION2DGAUSSIAN_H
16 #define BORNAGAIN_CORE_DETECTOR_RESOLUTIONFUNCTION2DGAUSSIAN_H
17 
19 
20 //! Simple gaussian two-dimensional resolution function.
21 //! @ingroup algorithms_internal
22 
24 {
25 public:
26  ResolutionFunction2DGaussian(double sigma_x, double sigma_y);
27 
28  virtual double evaluateCDF(double x, double y) const;
29 
31  {
33  }
34 
35  void accept(INodeVisitor* visitor) const final { visitor->visit(this); }
36 
37  double getSigmaX() const { return m_sigma_x; }
38  double getSigmaY() const { return m_sigma_y; }
39 
40 private:
42 
43  double m_sigma_x;
44  double m_sigma_y;
45 };
46 
47 #endif // BORNAGAIN_CORE_DETECTOR_RESOLUTIONFUNCTION2DGAUSSIAN_H
Defines interface class IResolutionFunction2D.
Visitor interface to visit ISample objects.
Definition: INodeVisitor.h:149
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