1 #ifndef NPSTAT_DUALHISTOAXIS_HH_ 2 #define NPSTAT_DUALHISTOAXIS_HH_ 34 const char*
label =
nullptr)
38 const char*
label =
nullptr)
44 inline double min()
const 47 inline double max()
const 106 const bool mapLeftEdgeTo0=
true)
const 120 {
return !(*
this ==
r);}
136 inline gs::ClassId
classId()
const {
return gs::ClassId(*
this);}
137 bool write(std::ostream&
of)
const;
140 static inline const char*
classname() {
return "npstat::DualHistoAxis";}
149 template <
typename Numeric,
class Axis>
friend class HistoND;
160 std::vector<double> vec(2, 0.0);
170 #endif // NPSTAT_DUALHISTOAXIS_HH_ unsigned closestValidBin(double x) const
double leftBinEdge(const int binNum) const
int binNumber(const double x) const
const std::string & label() const
double rightBinEdge(const int binNum) const
int binNumber(double x) const
unsigned overflowIndex(const double x, unsigned *binNum) const
void setLabel(const char *newlabel)
double fltBinNumber(const double x, const bool mapLeftEdgeTo0=true) const
int binNumber(double x) const
bool operator==(const DualHistoAxis &r) const
Histogram axis with non-uniform bin spacing.
const std::string & label() const
double binCenter(const int binNum) const
double leftBinEdge(const int binNum) const
bool write(std::ostream &of) const
void setLabel(const char *newlabel)
const HistoAxis * getHistoAxis() const
unsigned overflowIndex(const double x, unsigned *binNumber) const
static const char * classname()
double leftBinEdge(const int binNum) const
DualHistoAxis rebin(const unsigned newBins) const
bool isClose(const HistoAxis &, double tol) const
double binCenter(const int binNum) const
const NUHistoAxis * getNUHistoAxis() const
DualHistoAxis(const HistoAxis &u)
static DualHistoAxis * read(const gs::ClassId &id, std::istream &in)
Interval< double > interval() const
bool operator!=(const DualHistoAxis &r) const
double binCenter(const int binNum) const
void setLabel(const char *newlabel)
Interval< double > interval() const
double binWidth(const int=0) const
double binWidth(const int binNum) const
double rightBinEdge(const int binNum) const
DualHistoAxis(unsigned nBins, double min, double max, const char *label=0)
Interval< double > interval() const
Interval< double > binInterval(const int binNum) const
static unsigned version()
bool isClose(const NUHistoAxis &, double tol) const
double fltBinNumber(double x, bool mapLeftEdgeTo0=true) const
Interval< double > binInterval(const int binNum) const
gs::ClassId classId() const
unsigned overflowIndex(const double x, unsigned *binNumber) const
Interval< double > binInterval(const int binNum) const
bool isClose(const DualHistoAxis &r, const double tol) const
double rightBinEdge(const int binNum) const
double binWidth(const int binNum) const
unsigned closestValidBin(const double x) const
double fltBinNumber(const double x, const bool mapLeftEdgeTo0=true) const
unsigned closestValidBin(double x) const
DualHistoAxis(const std::vector< double > &binEdges, const char *label=0)
Histogram axis with equidistant bins.
static std::vector< double > dummy_vec()
const std::string & label() const
DualHistoAxis(const NUHistoAxis &a)