diff --git a/lib/Statistics/Histogram.cpp b/lib/Statistics/Histogram.cpp index 4f2cf06..832d4d7 100644 --- a/lib/Statistics/Histogram.cpp +++ b/lib/Statistics/Histogram.cpp @@ -146,6 +146,16 @@ double Histogram::getX(const Index i) const return x_(i); } +double Histogram::getXMin(void) const +{ + return xMin_; +} + +double Histogram::getXMax(void) const +{ + return xMax_; +} + double Histogram::operator[](const Index i) const { return bin_(i)*(isNormalized() ? norm_ : 1.); diff --git a/lib/Statistics/Histogram.hpp b/lib/Statistics/Histogram.hpp index 43c24b1..8a9d126 100644 --- a/lib/Statistics/Histogram.hpp +++ b/lib/Statistics/Histogram.hpp @@ -52,6 +52,8 @@ public: const StatArray & getData(void) const; const StatArray & getWeight(void) const; double getX(const Index i) const; + double getXMin(void) const; + double getXMax(void) const; double operator[](const Index i) const; double operator()(const double x) const; // percentiles & confidence interval