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);
39 std::vector<double> getBinCenters()
const;
44 void print(std::ostream& ostr)
const;
45 bool equals(
const IAxis& other)
const;
49 std::vector<double> m_bin_centers;
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.
CustomBinAxis * clone() const
clone function
CustomBinAxis(const std::string &name, size_t nbins, double start, double end)
CustomBinAxis constructor.
Bin1D getBin(size_t index) const
retrieve a 1d bin for the given index
Interface for one-dimensional axes.
Axis with variable bin size.