BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ResolutionFunction2DGaussian.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Device/Resolution/ResolutionFunction2DGaussian.cpp
6 //! @brief Implements 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 
16 #include "Base/Math/Functions.h"
17 #include "Fit/Param/RealLimits.h"
18 
20  : m_sigma_x(sigma_x)
21  , m_sigma_y(sigma_y)
22 {
25 }
26 
27 double ResolutionFunction2DGaussian::evaluateCDF(double x, double y) const
28 {
29  return Math::IntegratedGaussian(x, 0.0, m_sigma_x)
31 }
Defines namespace Math.
Defines class RealLimits.
Defines class ResolutionFunction2DGaussian.
void check(const std::string &name, double value) const
Throws if value is outside limits. Parameter 'name' is for exception message.
Definition: RealLimits.cpp:170
static RealLimits nonnegative()
Creates an object which can have only positive values with 0. included.
Definition: RealLimits.cpp:124
ResolutionFunction2DGaussian(double sigma_x, double sigma_y)
double evaluateCDF(double x, double y) const override
double IntegratedGaussian(double x, double average, double std_dev)
Definition: Functions.cpp:40