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

Description

Cosine distribution.

Inheritance diagram for DistributionCosine:

Public Member Functions

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

Constructor & Destructor Documentation

◆ DistributionCosine() [1/3]

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

◆ DistributionCosine() [2/3]

DistributionCosine::DistributionCosine ( double  mean,
double  sigma 
)

◆ DistributionCosine() [3/3]

DistributionCosine::DistributionCosine ( )

Member Function Documentation

◆ className()

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

◆ clone()

DistributionCosine* DistributionCosine::clone ( ) const
override

◆ equidistantPoints()

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

generate list of sample values

◆ isDelta()

bool DistributionCosine::isDelta ( ) const
override

◆ mean()

double DistributionCosine::mean ( ) const
override

◆ parDefs()

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

◆ probabilityDensity()

double DistributionCosine::probabilityDensity ( double  x) const
override

◆ sigma()

double DistributionCosine::sigma ( ) const