BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PoissonNoiseBackground.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Core/Computation/PoissonNoiseBackground.h
6 //! @brief Defines class PoissonNoiseBackground.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_CORE_COMPUTATION_POISSONNOISEBACKGROUND_H
16 #define BORNAGAIN_CORE_COMPUTATION_POISSONNOISEBACKGROUND_H
17 
19 
20 //! Class representing Poisson noise on top of the scattered intensity
21 //!
22 //! @ingroup simulation
23 
25 public:
27  PoissonNoiseBackground* clone() const final;
28 
29  void accept(INodeVisitor* visitor) const override { visitor->visit(this); }
30 
31  double addBackground(double intensity) const final;
32 };
33 
34 #endif // BORNAGAIN_CORE_COMPUTATION_POISSONNOISEBACKGROUND_H
Defines interface IBackground.
Interface for a simulating the background signal.
Definition: IBackground.h:26
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
virtual void visit(const BasicLattice2D *)
Definition: INodeVisitor.h:151
Class representing Poisson noise on top of the scattered intensity.
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
double addBackground(double intensity) const final
PoissonNoiseBackground * clone() const final