27 throw std::runtime_error(
"IAxis::binCenters() -> Error. Not implemented.");
32 throw std::runtime_error(
"IAxis::binBoundaries() -> Error. Not implemented.");
37 throw std::runtime_error(
"IAxis::clip() -> Error. Not implemented.");
47 return value >=
min() && value <
max();
62 return (
max() +
min()) / 2;
Defines structs Bin1D, Bin1DCVector.
Abstract base class for one-dimensional axes.
double span() const
Returns distance from first to last point.
virtual bool contains(double value) const
Returns true if axis contains given point.
virtual std::vector< double > binCenters() const
virtual std::vector< double > binBoundaries() const
virtual bool equals(const IAxis &other) const
virtual double max() const =0
Returns value of last point of axis.
virtual double min() const =0
Returns value of first point of axis.
std::pair< double, double > bounds() const
Returns lower and upper bound in a pair. first is lower, second is upper.
std::string axisName() const
Returns the label of the axis.
virtual void clip(double lower, double upper)
Clips this axis to the given values.
double center() const
Returns midpoint of axis.