35 Axis *clone(
const std::size_t length,
const MatrixWorkspace *
const parentWorkspace)
override;
38 std::size_t
length()
const override {
return m_values.size(); }
40 double operator()(
const std::size_t &
index,
const std::size_t &verticalIndex = 0)
const override;
42 void setValue(
const std::size_t &
index,
const double &
value)
override;
43 size_t indexOfValue(
const double value)
const override;
45 virtual bool equalWithinTolerance(
const Axis &axis2,
const double tolerance)
const;
46 std::string label(
const std::size_t &
index)
const override;
48 virtual std::vector<double> createBinBoundaries()
const;
50 virtual const std::vector<double> &getValues()
const;
52 double getMin()
const override {
return m_values.front(); }
54 double getMax()
const override {
return m_values.back(); }
64 std::string formatLabel(
const double value)
const;
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
Class to represent the axis of a workspace.
Base MatrixWorkspace Abstract Class.
Class to represent a numeric axis of a workspace.
double getMax() const override
returns max value defined on axis
double getMin() const override
returns min value defined on axis
std::size_t length() const override
Get the length of the axis.
std::vector< double > m_values
A vector holding the centre values.
NumericAxis()
Default constructor.
bool isNumeric() const override
Is the axis numeric - always true for this class.
Helper class which provides the Collimation Length for SANS instruments.
constexpr bool operator==(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)