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

Trapezoidal distribution. More...

+ Inheritance diagram for DistributionTrapezoid:

Public Member Functions

 DistributionTrapezoid (const std::vector< double > P)
 
 DistributionTrapezoid (double center, double left, double middle, double right)
 
void accept (INodeVisitor *visitor) const final
 
DistributionTrapezoidclone () const final
 
virtual std::vector< double > equidistantPoints (size_t nbr_samples, double sigma_factor, const RealLimits &limits=RealLimits()) const
 generate list of sample values
 
double getLeftWidth () const
 
double getMean () const final
 
double getMiddleWidth () const
 
double getRightWidth () const
 
bool isDelta () const final
 
double probabilityDensity (double x) const final
 

Detailed Description

Trapezoidal distribution.