BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
DiffUtil.h File Reference

Description

Defines namespace DataUtils.

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 DiffUtil.h.

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

Go to the source code of this file.

Namespaces

 DiffUtil
 

Functions

bool DiffUtil::checkRelativeDifference (const std::vector< double > &dat, const std::vector< double > &ref, double threshold)
 Returns true is relative difference is below threshold; prints informative output. More...
 
double DiffUtil::meanRelativeDifference (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...
 
double DiffUtil::meanRelVecDiff (const std::vector< double > &dat, const std::vector< double > &ref)
 Returns relative difference between two data sets sum(dat[i] - ref[i])/ref[i]). More...
 
DatafieldDiffUtil::relativeDifferenceField (const Datafield &dat, const Datafield &ref)
 Returns Datafield representing relative difference of two histograms. More...