BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ParameterSample.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file Param/Distrib/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_DISTRIB_PARAMETERSAMPLE_H
16
#define BORNAGAIN_PARAM_DISTRIB_PARAMETERSAMPLE_H
17
18
//! A parameter value with a weight, as obtained when sampling from a distribution.
19
20
class
ParameterSample
{
21
public
:
22
ParameterSample
(
double
_value,
double
_weight = 1)
23
:
value
(_value)
24
,
weight
(_weight)
25
{
26
}
27
double
value
;
28
double
weight
;
29
};
30
31
#endif
// BORNAGAIN_PARAM_DISTRIB_PARAMETERSAMPLE_H
ParameterSample
A parameter value with a weight, as obtained when sampling from a distribution.
Definition:
ParameterSample.h:20
ParameterSample::ParameterSample
ParameterSample(double _value, double _weight=1)
Definition:
ParameterSample.h:22
ParameterSample::value
double value
Definition:
ParameterSample.h:27
ParameterSample::weight
double weight
Definition:
ParameterSample.h:28
Param
Distrib
ParameterSample.h
Generated by
1.9.1