Mantid
Loading...
Searching...
No Matches
BinEdgeAxis.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10
11namespace Mantid {
12namespace API {
13
20class MANTID_API_DLL BinEdgeAxis : public NumericAxis {
21public:
22 BinEdgeAxis(const std::size_t &length);
23 BinEdgeAxis(const std::vector<double> &edges);
24
25 Axis *clone(const MatrixWorkspace *const parentWorkspace) override;
26 Axis *clone(const std::size_t length, const MatrixWorkspace *const parentWorkspace) override;
27
28 std::vector<double> createBinBoundaries() const override;
29 void setValue(const std::size_t &index, const double &value) override;
30 size_t indexOfValue(const double value) const override;
31 std::string label(const std::size_t &index) const override;
32};
33
34} // namespace API
35} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
Class to represent the axis of a workspace.
Definition: Axis.h:30
Stores numeric values that are assumed to be bin edge values.
Definition: BinEdgeAxis.h:20
Base MatrixWorkspace Abstract Class.
Class to represent a numeric axis of a workspace.
Definition: NumericAxis.h:29
Helper class which provides the Collimation Length for SANS instruments.