15 #ifndef BORNAGAIN_BASE_AXIS_CUSTOMBINAXIS_H
16 #define BORNAGAIN_BASE_AXIS_CUSTOMBINAXIS_H
31 CustomBinAxis(
const std::string& name,
size_t nbins,
double start,
double end);
36 Bin1D bin(
size_t index)
const override;
38 std::vector<double>
binCenters()
const override;
40 void clip(
double lower,
double upper)
override;
43 void print(std::ostream& ostr)
const override;
Defines class VariableBinAxis.
Axis with fixed bin size in sin(angle) space used for numerical comparison with IsGisaxs....
void clip(double lower, double upper) override
Clips this axis to the given values.
std::vector< double > binCenters() const override
void print(std::ostream &ostr) const override
~CustomBinAxis() override=default
CustomBinAxis * clone() const override
CustomBinAxis(const std::string &name, size_t nbins, double start, double end)
CustomBinAxis constructor.
std::vector< double > m_bin_centers
bool equals(const IAxis &other) const override
Bin1D bin(size_t index) const override
retrieve a 1d bin for the given index
Abstract base class for one-dimensional axes.
Axis with variable bin size.