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

Description

Uniform distribution function with half width hwhm.

Inheritance diagram for DistributionGate:

Public Member Functions

 DistributionGate ()
 
 DistributionGate (double min, double max)
 
 DistributionGate (std::vector< double > P)
 
std::string className () const final
 
DistributionGateclone () const override
 
std::vector< double > equidistantPoints (size_t nbr_samples, double sigma_factor, const RealLimits &limits=RealLimits()) const override
 Returns list of sample values. More...
 
bool isDelta () const override
 
double max () const
 
double mean () const override
 
double min () const
 
std::vector< ParaMeta > parDefs () const final
 
double probabilityDensity (double x) const override
 

Constructor & Destructor Documentation

◆ DistributionGate() [1/3]

DistributionGate::DistributionGate ( std::vector< double >  P)

◆ DistributionGate() [2/3]

DistributionGate::DistributionGate ( double  min,
double  max 
)

◆ DistributionGate() [3/3]

DistributionGate::DistributionGate ( )

Member Function Documentation

◆ className()

std::string DistributionGate::className ( ) const
final

◆ clone()

DistributionGate* DistributionGate::clone ( ) const
override

◆ equidistantPoints()

std::vector<double> DistributionGate::equidistantPoints ( size_t  nbr_samples,
double  sigma_factor,
const RealLimits limits = RealLimits() 
) const
override

Returns list of sample values.

◆ isDelta()

bool DistributionGate::isDelta ( ) const
override

◆ max()

double DistributionGate::max ( ) const

◆ mean()

double DistributionGate::mean ( ) const
override

◆ min()

double DistributionGate::min ( ) const

◆ parDefs()

std::vector<ParaMeta> DistributionGate::parDefs ( ) const
final

◆ probabilityDensity()

double DistributionGate::probabilityDensity ( double  x) const
override