mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-11 03:20:46 +01:00
Added histogram feature to return xMax and xMin.
This commit is contained in:
parent
db08559632
commit
be72d31364
@ -146,6 +146,16 @@ double Histogram::getX(const Index i) const
|
|||||||
return x_(i);
|
return x_(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double Histogram::getXMin(void) const
|
||||||
|
{
|
||||||
|
return xMin_;
|
||||||
|
}
|
||||||
|
|
||||||
|
double Histogram::getXMax(void) const
|
||||||
|
{
|
||||||
|
return xMax_;
|
||||||
|
}
|
||||||
|
|
||||||
double Histogram::operator[](const Index i) const
|
double Histogram::operator[](const Index i) const
|
||||||
{
|
{
|
||||||
return bin_(i)*(isNormalized() ? norm_ : 1.);
|
return bin_(i)*(isNormalized() ? norm_ : 1.);
|
||||||
|
@ -52,6 +52,8 @@ public:
|
|||||||
const StatArray<double> & getData(void) const;
|
const StatArray<double> & getData(void) const;
|
||||||
const StatArray<double> & getWeight(void) const;
|
const StatArray<double> & getWeight(void) const;
|
||||||
double getX(const Index i) const;
|
double getX(const Index i) const;
|
||||||
|
double getXMin(void) const;
|
||||||
|
double getXMax(void) const;
|
||||||
double operator[](const Index i) const;
|
double operator[](const Index i) const;
|
||||||
double operator()(const double x) const;
|
double operator()(const double x) const;
|
||||||
// percentiles & confidence interval
|
// percentiles & confidence interval
|
||||||
|
Loading…
x
Reference in New Issue
Block a user