15 #ifndef BORNAGAIN_BASE_AXIS_FIXEDBINAXIS_H
16 #define BORNAGAIN_BASE_AXIS_FIXEDBINAXIS_H
30 FixedBinAxis(
const std::string&
name,
size_t nbins,
double start,
double end);
44 double binCenter(
size_t index)
const {
return (*
this)[index]; }
55 void print(std::ostream& ostr)
const;
Axis with fixed bin size.
double binCenter(size_t index) const
FixedBinAxis * createClippedAxis(double left, double right) const
Creates a new clipped axis.
virtual bool equals(const IAxis &other) const
double operator[](size_t index) const
indexed accessor retrieves a sample
size_t findClosestIndex(double value) const
find bin index which is best match for given value
void print(std::ostream &ostr) const
std::vector< double > binBoundaries() const
Bin1D bin(size_t index) const
retrieve a 1d bin for the given index
FixedBinAxis * clone() const
clone function
double lowerBound() const
Returns value of first point of axis.
double upperBound() const
Returns value of last point of axis.
std::vector< double > binCenters() const
FixedBinAxis(const std::string &name, size_t nbins, double start, double end)
FixedBinAxis constructor.
size_t size() const
retrieve the number of bins
Interface for one-dimensional axes.
QString const & name(EShape k)