16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_PARAM_DISTRIB_DISTRIBUTIONHANDLER_H
21 #define BORNAGAIN_PARAM_DISTRIB_DISTRIBUTIONHANDLER_H
37 double sigma_factor = 0.0,
56 std::function<
void(
double)> fn);
Defines class ParameterDistribution.
Provides the functionality to average over parameter distributions with weights.
void addParameterDistribution(const std::string ¶m_name, const IDistribution1D &distribution, size_t nbr_samples, double sigma_factor=0.0, const RealLimits &limits=RealLimits())
add a sampled parameter distribution
double setParameterValues(size_t index)
set the parameter values of the simulation object to a specific combination of values,...
virtual ~DistributionHandler()
std::map< const ParameterDistribution *, std::function< void(double)> > m_setValueFunctions
const std::vector< ParameterDistribution > & getDistributions() const
size_t m_nbr_combinations
void defineCallbackForDistribution(const ParameterDistribution *distribution, std::function< void(double)> fn)
size_t getTotalNumberOfSamples() const
get the total number of parameter value combinations (product of the individual sizes of each paramet...
std::vector< std::vector< ParameterSample > > m_cached_samples
std::vector< ParameterDistribution > m_distributions
Interface for one-dimensional distributions.
A parametric distribution function, for use with any model parameter.
Limits for a real fit parameter.