BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
HistoUtils.h File Reference

PyObvject forward declaration. More...

Include dependency graph for HistoUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 HistoUtils
 Collection of utils for 1D and 2D image processing (background, peaks, ets).
 

Functions

bool HistoUtils::agreesWithReference (const SimulationResult &dat, const std::string &refFileName, double tol)
 Returns true if SimulatioResult agrees with data from reference file. More...
 
std::vector< std::pair< double, double > > HistoUtils::FindPeaks (const Histogram2D &hist, double sigma=2, const std::string &option={}, double threshold=0.05)
 Returns vector of peak center coordinates, for peaks in given histogram. More...
 
double HistoUtils::getRelativeDifference (const IHistogram &dat, const IHistogram &ref)
 
double HistoUtils::RelativeDifference (const SimulationResult &dat, const SimulationResult &ref)
 Returns sum of relative differences between each pair of elements: (a, b) -> 2*abs(a - b)/(a + b) ( and zero if a-b=0 ) More...
 

Detailed Description

PyObvject forward declaration.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file HistoUtils.h.