BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
RangedDistributionLogNormal Class Reference

Description

Log-normal distribution.

Inheritance diagram for RangedDistributionLogNormal:

Public Member Functions

 RangedDistributionLogNormal ()
 
 RangedDistributionLogNormal (size_t n_samples, double sigma_factor, const RealLimits &limits=RealLimits::limitless())
 
 RangedDistributionLogNormal (size_t n_samples, double sigma_factor, double min, double max)
 Initializes Ranged distribution with given number of samples, sigma factor (range in standard deviations to take into account during sample generation) and limits (either RealLimits object or just min and max limits). By default n_samples = 5, sigma_factor = 2.0, while the limits are (-inf, +inf). More...
 
 ~RangedDistributionLogNormal () override=default
 
RangedDistributionLogNormalclone () const override
 
std::string name () const override
 Returns distribution name for python-formatted text. More...
 

Protected Member Functions

IDistribution1D * distribution_impl (double mean, double stddev) const override
 Returns underlying IDistribution1D object. More...
 

Constructor & Destructor Documentation

◆ RangedDistributionLogNormal() [1/3]

RangedDistributionLogNormal::RangedDistributionLogNormal ( )

◆ RangedDistributionLogNormal() [2/3]

RangedDistributionLogNormal::RangedDistributionLogNormal ( size_t  n_samples,
double  sigma_factor,
const RealLimits limits = RealLimits::limitless() 
)

◆ RangedDistributionLogNormal() [3/3]

RangedDistributionLogNormal::RangedDistributionLogNormal ( size_t  n_samples,
double  sigma_factor,
double  min,
double  max 
)

Initializes Ranged distribution with given number of samples, sigma factor (range in standard deviations to take into account during sample generation) and limits (either RealLimits object or just min and max limits). By default n_samples = 5, sigma_factor = 2.0, while the limits are (-inf, +inf).

◆ ~RangedDistributionLogNormal()

RangedDistributionLogNormal::~RangedDistributionLogNormal ( )
overridedefault

Member Function Documentation

◆ clone()

RangedDistributionLogNormal* RangedDistributionLogNormal::clone ( ) const
override

◆ distribution_impl()

IDistribution1D* RangedDistributionLogNormal::distribution_impl ( double  mean,
double  stddev 
) const
overrideprotected

Returns underlying IDistribution1D object.

◆ name()

std::string RangedDistributionLogNormal::name ( ) const
override

Returns distribution name for python-formatted text.