52 newAxis->m_values.clear();
53 newAxis->m_values.resize(
length);
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
Class to represent the axis of a workspace.
Stores numeric values that are assumed to be bin edge values.
BinEdgeAxis(const std::size_t &length)
Constructor taking a length.
std::vector< double > createBinBoundaries() const override
Return the values axis as they are.
void setValue(const std::size_t &index, const double &value) override
Sets the axis value at a given position.
std::string label(const std::size_t &index) const override
Returns a text label which shows the value at the given bin index.
size_t indexOfValue(const double value) const override
Treats values as bin edges and returns the index of the bin, which the value falls into.
Axis * clone(const MatrixWorkspace *const parentWorkspace) override
Virtual constructor.
Base MatrixWorkspace Abstract Class.
Class to represent a numeric axis of a workspace.
std::string formatLabel(const double value) const
Get number label.
virtual const std::vector< double > & getValues() const
Return a const reference to the values.
std::size_t length() const override
Get the length of the axis.
std::vector< double > m_values
A vector holding the centre values.
Exception for index errors.
size_t MANTID_KERNEL_DLL indexOfValueFromEdges(const std::vector< double > &bin_edges, const double value)
Gets the bin of a value from a vector of bin edges.