BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterSample.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Param/Varia/ParameterSample.h
6 //! @brief Defines class ParameterSample.
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_PARAM_VARIA_PARAMETERSAMPLE_H
16 #define BORNAGAIN_PARAM_VARIA_PARAMETERSAMPLE_H
17 
18 //! A parameter value with a weight, as obtained when sampling from a distribution.
19 //! @ingroup algorithms_internal
20 
22 public:
23  ParameterSample(double _value = 0., double _weight = 1.) : value(_value), weight(_weight) {}
24  double value;
25  double weight;
26 };
27 
28 #endif // BORNAGAIN_PARAM_VARIA_PARAMETERSAMPLE_H
A parameter value with a weight, as obtained when sampling from a distribution.
ParameterSample(double _value=0., double _weight=1.)