BornAgain  1.18.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 scattering at grazing incidence
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_CORE_PARAMETRIZATION_PARAMETERSAMPLE_H
16 #define BORNAGAIN_CORE_PARAMETRIZATION_PARAMETERSAMPLE_H
17 
18 //! A parameter value with a weight, as obtained when sampling from a distribution.
19 //! @ingroup algorithms_internal
20 
22 {
23 public:
24  ParameterSample(double _value = 0., double _weight = 1.) : value(_value), weight(_weight) {}
25  double value;
26  double weight;
27 };
28 
29 #endif // BORNAGAIN_CORE_PARAMETRIZATION_PARAMETERSAMPLE_H
A parameter value with a weight, as obtained when sampling from a distribution.
ParameterSample(double _value=0., double _weight=1.)