BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Axis with variable bin size. More...
Public Member Functions | |
VariableBinAxis (const std::string &name, size_t nbins, const std::vector< double > &bin_boundaries) | |
VariableBinAxis constructor. More... | |
Bin1D | bin (size_t index) const |
std::vector< double > | binBoundaries () const |
double | binCenter (size_t index) const |
std::vector< double > | binCenters () const |
VariableBinAxis * | clone () const |
virtual VariableBinAxis * | 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 Attributes | |
size_t | m_nbins |
Axis with variable bin size.
VariableBinAxis::VariableBinAxis | ( | const std::string & | name, |
size_t | nbins, | ||
const std::vector< double > & | bin_boundaries | ||
) |
VariableBinAxis constructor.
name | Axis name |
nbins | number of bins |
bin_boundaries | Array of size nbins+1 containing low-edges for each bin and upper edge of last bin. |