15 #ifndef BORNAGAIN_CORE_AXIS_CUSTOMBINAXIS_H
16 #define BORNAGAIN_CORE_AXIS_CUSTOMBINAXIS_H
32 CustomBinAxis(
const std::string& name,
size_t nbins,
double start,
double end);
44 void print(std::ostream& ostr)
const;
Defines class VariableBinAxis.
Axis with fixed bin size in sin(angle) space used for numerical comparison with IsGisaxs.
CustomBinAxis * createClippedAxis(double left, double right) const
Creates a new clipped axis.
void print(std::ostream &ostr) const
std::vector< double > getBinCenters() const
CustomBinAxis * clone() const
clone function
bool equals(const IAxis &other) const
CustomBinAxis(const std::string &name, size_t nbins, double start, double end)
CustomBinAxis constructor.
std::vector< double > m_bin_centers
Bin1D getBin(size_t index) const
retrieve a 1d bin for the given index
Interface for one-dimensional axes.
Axis with variable bin size.