BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
A parametric distribution function, for use with any model parameter.
Public Types | |
enum | WhichParameter { None , BeamWavelength , BeamInclinationAngle , BeamAzimuthalAngle } |
Public Member Functions | |
ParameterDistribution (const ParameterDistribution &other) | |
ParameterDistribution (WhichParameter whichParameter, const IDistribution1D &distribution, size_t nbr_samples, double sigma_factor=0.0, const RealLimits &limits=RealLimits()) | |
ParameterDistribution (WhichParameter whichParameter, const IDistribution1D &distribution, size_t nbr_samples, double xmin, double xmax) | |
virtual | ~ParameterDistribution () |
std::vector< ParameterSample > | generateSamples () const |
generate list of sampled values with their weight More... | |
IDistribution1D * | getDistribution () |
const IDistribution1D * | getDistribution () const |
RealLimits | getLimits () const |
double | getMaxValue () const |
double | getMinValue () const |
size_t | nDraws () const |
get number of samples for this distribution More... | |
ParameterDistribution & | operator= (const ParameterDistribution &other) |
Overload assignment operator. More... | |
double | sigmaFactor () const |
get the sigma factor More... | |
WhichParameter | whichParameter () const |
std::string | whichParameterAsPyEnum () const |
ParameterDistribution::ParameterDistribution | ( | WhichParameter | whichParameter, |
const IDistribution1D & | distribution, | ||
size_t | nbr_samples, | ||
double | sigma_factor = 0.0 , |
||
const RealLimits & | limits = RealLimits() |
||
) |
ParameterDistribution::ParameterDistribution | ( | WhichParameter | whichParameter, |
const IDistribution1D & | distribution, | ||
size_t | nbr_samples, | ||
double | xmin, | ||
double | xmax | ||
) |
ParameterDistribution::ParameterDistribution | ( | const ParameterDistribution & | other | ) |
|
virtual |
std::vector<ParameterSample> ParameterDistribution::generateSamples | ( | ) | const |
generate list of sampled values with their weight
IDistribution1D* ParameterDistribution::getDistribution | ( | ) |
const IDistribution1D* ParameterDistribution::getDistribution | ( | ) | const |
RealLimits ParameterDistribution::getLimits | ( | ) | const |
double ParameterDistribution::getMaxValue | ( | ) | const |
double ParameterDistribution::getMinValue | ( | ) | const |
size_t ParameterDistribution::nDraws | ( | ) | const |
get number of samples for this distribution
ParameterDistribution& ParameterDistribution::operator= | ( | const ParameterDistribution & | other | ) |
Overload assignment operator.
double ParameterDistribution::sigmaFactor | ( | ) | const |
get the sigma factor
WhichParameter ParameterDistribution::whichParameter | ( | ) | const |
std::string ParameterDistribution::whichParameterAsPyEnum | ( | ) | const |