BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
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 IProfile1D, 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)
37  , m_omega_y(omega_y)
38  {
39  }
40  std::pair<double, double> randomSample() const override;
41 
42 private:
44 };
45 
47 public:
48  Distribution2DGaussSampler(double omega_x, double omega_y)
49  : m_omega_x(omega_x)
50  , m_omega_y(omega_y)
51  {
52  }
53  std::pair<double, double> randomSample() const override;
54 
55 private:
57 };
58 
60 public:
61  Distribution2DGateSampler(double omega_x, double omega_y)
62  : m_omega_x(omega_x)
63  , m_omega_y(omega_y)
64  {
65  }
66  std::pair<double, double> randomSample() const override;
67 
68 private:
70 };
71 
73 public:
74  Distribution2DConeSampler(double omega_x, double omega_y)
75  : m_omega_x(omega_x)
76  , m_omega_y(omega_y)
77  {
78  }
79  std::pair<double, double> randomSample() const override;
80 
81 private:
83 };
84 
85 #endif // BORNAGAIN_SAMPLE_CORRELATIONS_IDISTRIBUTION2DSAMPLER_H
86 #endif // USER_API
Distribution2DCauchySampler(double omega_x, double omega_y)
std::pair< double, double > randomSample() const override
std::pair< double, double > randomSample() const override
Distribution2DConeSampler(double omega_x, double omega_y)
std::pair< double, double > randomSample() const override
Distribution2DGateSampler(double omega_x, double omega_y)
std::pair< double, double > randomSample() const override
Distribution2DGaussSampler(double omega_x, double omega_y)
virtual ~IDistribution2DSampler()
virtual std::pair< double, double > randomSample() const =0
IDistribution2DSampler()=default