15 #ifndef BORNAGAIN_DEVICE_HISTO_HISTOUTILS_H
16 #define BORNAGAIN_DEVICE_HISTO_HISTOUTILS_H
33 const std::string& option = {},
34 double threshold = 0.05);
Defines and implements templated class OutputData.
Two dimensional histogram.
Base class for 1D and 2D histograms holding values of double type.
Wrapper around OutputData<double> that also provides unit conversions.
Collection of utils for 1D and 2D image processing (background, peaks, ets).
std::vector< std::pair< double, double > > 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.
double getRelativeDifference(const IHistogram &dat, const IHistogram &ref)
bool agreesWithReference(const SimulationResult &dat, const std::string &refFileName, double tol)
Returns true if SimulatioResult agrees with data from reference file.
double 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) ( a...