BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterDistribution Class Reference

A parametric distribution function, for use with any model parameter. More...

+ Inheritance diagram for ParameterDistribution:

Public Member Functions

 ParameterDistribution (const ParameterDistribution &other)
 
 ParameterDistribution (const std::string &par_name, const IDistribution1D &distribution, size_t nbr_samples, double sigma_factor=0.0, const RealLimits &limits=RealLimits())
 
 ParameterDistribution (const std::string &par_name, const IDistribution1D &distribution, size_t nbr_samples, double xmin, double xmax)
 
std::vector< ParameterSamplegenerateSamples () const
 generate list of sampled values with their weight
 
IDistribution1D * getDistribution ()
 
const IDistribution1D * getDistribution () const
 
RealLimits getLimits () const
 
std::vector< std::string > getLinkedParameterNames () const
 get list of linked parameter names
 
std::string getMainParameterName () const
 get the main parameter's name
 
double getMaxValue () const
 
double getMinValue () const
 
size_t getNbrSamples () const
 get number of samples for this distribution
 
double getSigmaFactor () const
 get the sigma factor
 
ParameterDistributionlinkParameter (std::string par_name)
 
ParameterDistributionoperator= (const ParameterDistribution &other)
 Overload assignment operator.
 

Detailed Description

A parametric distribution function, for use with any model parameter.