BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IDistribution2DSampler.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Correlations/IDistribution2DSampler.h
6 //! @brief Defines interface class IFTDistribution1D, and children thereof
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SAMPLE_CORRELATIONS_IDISTRIBUTION2DSAMPLER_H
21 #define BORNAGAIN_SAMPLE_CORRELATIONS_IDISTRIBUTION2DSAMPLER_H
22 
23 #include <utility>
24 
26 public:
29 
30  virtual std::pair<double, double> randomSample() const = 0;
31 };
32 
34 public:
35  Distribution2DCauchySampler(double omega_x, double omega_y)
36  : m_omega_x(omega_x), m_omega_y(omega_y)
37  {
38  }
39  std::pair<double, double> randomSample() const final;
40 
41 private:
43 };
44 
46 public:
47  Distribution2DGaussSampler(double omega_x, double omega_y)
48  : m_omega_x(omega_x), m_omega_y(omega_y)
49  {
50  }
51  std::pair<double, double> randomSample() const final;
52 
53 private:
55 };
56 
58 public:
59  Distribution2DGateSampler(double omega_x, double omega_y)
60  : m_omega_x(omega_x), m_omega_y(omega_y)
61  {
62  }
63  std::pair<double, double> randomSample() const final;
64 
65 private:
67 };
68 
70 public:
71  Distribution2DConeSampler(double omega_x, double omega_y)
72  : m_omega_x(omega_x), m_omega_y(omega_y)
73  {
74  }
75  std::pair<double, double> randomSample() const final;
76 
77 private:
79 };
80 
81 #endif // BORNAGAIN_SAMPLE_CORRELATIONS_IDISTRIBUTION2DSAMPLER_H
82 #endif // USER_API
Distribution2DCauchySampler(double omega_x, double omega_y)
std::pair< double, double > randomSample() const final
Distribution2DConeSampler(double omega_x, double omega_y)
Distribution2DGateSampler(double omega_x, double omega_y)
Distribution2DGaussSampler(double omega_x, double omega_y)
virtual ~IDistribution2DSampler()
virtual std::pair< double, double > randomSample() const =0