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

Description

Abstract base class for background noise, to be added to simulated scattering.

Base class of ConstantBackground, PoissonBackground.

Inheritance diagram for IBackground:

Public Member Functions

 IBackground (const std::vector< double > &PValues)
 
 ~IBackground () override
 
virtual double addBackground (double element) const =0
 
IBackgroundclone () const override=0
 

Constructor & Destructor Documentation

◆ IBackground()

IBackground::IBackground ( const std::vector< double > &  PValues)

◆ ~IBackground()

IBackground::~IBackground ( )
override

Member Function Documentation

◆ addBackground()

virtual double IBackground::addBackground ( double  element) const
pure virtual

Implemented in PoissonBackground, and ConstantBackground.

◆ clone()

IBackground* IBackground::clone ( ) const
overridepure virtual

Implemented in PoissonBackground, and ConstantBackground.