8 const unsigned nBins = gridAxis.
nCoords();
9 const double xmin = gridAxis.
min();
10 const double xmax = gridAxis.
max();
11 const double hbw = 0.5*(xmax -
xmin)/(nBins - 1U);
18 const unsigned nBins = histoAxis.
nBins();
27 const unsigned nCoords = gridAxis.
nCoords();
28 std::vector<double> binEdges;
29 binEdges.reserve(nCoords + 1U);
30 binEdges.push_back(xMin);
31 for (
unsigned i=0;
i<nCoords; ++
i)
36 "conversion is impossible");
37 const double halfbin = x - xMin;
39 binEdges.push_back(xMin);
47 const unsigned nBins = histoAxis.
nBins();
48 std::vector<double> coords;
49 coords.reserve(nBins);
50 for (
unsigned i=0;
i<nBins; ++
i)
const std::string & label() const
const std::string & label() const
Functions for converting between grid and histogram axes.
double coordinate(const unsigned i) const
T x() const
Cartesian x coordinate.
Exceptions for the npstat namespace.
double binCenter(const int binNum) const
UniformAxis convertToGridAxis(const HistoAxis &histoAxis)
double binCenter(const int binNum) const
HistoAxis convertToHistoAxis(const UniformAxis &gridAxis)
const std::string & label() const