BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Axis with variable bin size.
Public Member Functions | |
VariableBinAxis (const std::string &name, const std::vector< double > &bin_boundaries) | |
VariableBinAxis constructor. More... | |
~VariableBinAxis () override=default | |
Bin1D | bin (size_t index) const override |
std::vector< double > | binBoundaries () const override |
double | binCenter (size_t index) const override |
std::vector< double > | binCenters () const override |
void | clip (double lower, double upper) override |
VariableBinAxis * | clone () const override |
size_t | findClosestIndex (double value) const override |
double | max () const override |
double | min () const override |
double | operator[] (size_t index) const override |
size_t | size () const override |
Protected Member Functions | |
VariableBinAxis (const std::string &name, size_t nbins=0) | |
bool | equals (const IAxis &other) const override |
void | print (std::ostream &ostr) const override |
void | setBinBoundaries (const std::vector< double > &bin_boundaries) |
Protected Attributes | |
size_t | m_nbins |
VariableBinAxis::VariableBinAxis | ( | const std::string & | name, |
const std::vector< double > & | bin_boundaries | ||
) |
VariableBinAxis constructor.
name | Axis name |
bin_boundaries | Array of size nbins+1 containing low-edges for each bin and upper edge of last bin. |
|
overridedefault |
|
explicitprotected |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
overrideprotected |
|
override |
|
override |
|
override |
|
override |
|
overrideprotected |
|
protected |
|
override |
|
protected |