BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Axis with fixed bin size in sin(angle) space used for numerical comparison with IsGisaxs. More...
Public Member Functions | |
CustomBinAxis (const std::string &name, size_t nbins, double start, double end) | |
CustomBinAxis constructor. More... | |
Bin1D | bin (size_t index) const |
std::vector< double > | binBoundaries () const |
double | binCenter (size_t index) const |
std::vector< double > | binCenters () const |
CustomBinAxis * | clone () const |
CustomBinAxis * | createClippedAxis (double left, double right) const |
size_t | findClosestIndex (double value) const |
double | lowerBound () const |
double | operator[] (size_t index) const |
size_t | size () const |
double | upperBound () const |
Protected Member Functions | |
bool | equals (const IAxis &other) const |
void | print (std::ostream &ostr) const |
void | setBinBoundaries (const std::vector< double > &bin_boundaries) |
Protected Attributes | |
std::vector< double > | m_bin_centers |
double | m_end |
size_t | m_nbins |
double | m_start |
Axis with fixed bin size in sin(angle) space used for numerical comparison with IsGisaxs.
The main feature of the axis is that it produces zero bin sizes.
CustomBinAxis::CustomBinAxis | ( | const std::string & | name, |
size_t | nbins, | ||
double | start, | ||
double | end | ||
) |
CustomBinAxis constructor.
name | Axis name |
nbins | number of bins |
start | center of first bin (IsGisaxs convention) |
end | center of last bin (IsGisaxs convention) |