BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
std::vector< std::pair< double, double > > | FindPeaks (const Histogram2D &hist, double sigma=2, const std::string &option={}, double threshold=0.05) |
Collection of utils for 1D and 2D spectrum processing (background, peaks, ets).
std::vector< std::pair< double, double > > SpectrumUtils::FindPeaks | ( | const Histogram2D & | hist, |
double | sigma = 2 , |
||
const std::string & | option = {} , |
||
double | threshold = 0.05 |
||
) |
Definition at line 19 of file SpectrumUtils.cpp.
References IHistogram::createOutputData(), ArrayUtils::createVector2D(), IAxis::getBin(), Bin1D::getBinSize(), Bin1D::getMidPoint(), IHistogram::getXaxis(), IHistogram::getYaxis(), anonymous_namespace{InterferenceFunctionHardDisk.cpp}::p, and IAxis::size().