BCH2D.cxx
126 std::vector<std::pair<double, double> > dens_mass = GetSmallestIntervalBounds(intervals, fBandOvercoverage);
149 GetHistogram()->Draw(Form("%scont%d", options.data(), static_cast<int>(std::abs(fBandFillStyle))));
198 double median_prob = 0.5 * ((axis == kProfileY) ? GetHistogram()->Integral(1, n_j, i, i, "width") : GetHistogram()->Integral(i, i, 1, n_j, "width"));
205 prob_sum += (axis == kProfileY) ? GetHistogram()->Integral(j, j, i, i, "width") : GetHistogram()->Integral(i, i, j, j, "width");
208 g->SetPoint(g->GetN(), GetHistogram()->GetXaxis()->GetBinLowEdge(j), GetHistogram()->GetYaxis()->GetBinCenter(i));
210 g->SetPoint(g->GetN(), GetHistogram()->GetXaxis()->GetBinCenter(i), GetHistogram()->GetYaxis()->GetBinLowEdge(j));
221 double val = (axis == kProfileY) ? GetHistogram()->GetBinContent(j, i) : GetHistogram()->GetBinContent(i, j);
229 g->SetPoint(g->GetN(), GetHistogram()->GetXaxis()->GetBinCenter(j_max_val), GetHistogram()->GetYaxis()->GetBinCenter(i));
231 g->SetPoint(g->GetN(), GetHistogram()->GetXaxis()->GetBinCenter(i), GetHistogram()->GetYaxis()->GetBinCenter(j_max_val));
242 double mass = (axis == kProfileY) ? GetHistogram()->Integral(j, j, i, i, "width") : GetHistogram()->Integral(i, i, j, j, "width");
244 sum += mass * ((axis == kProfileY) ? GetHistogram()->GetXaxis()->GetBinCenter(j) : GetHistogram()->GetYaxis()->GetBinCenter(j));
virtual void DrawMarkers()
Draw markers (global mode, local mode, etc.).
Definition: BCHistogramBase.cxx:522
virtual void DrawBands(const std::string &options="same")
Draw band, or if band type set to no bands, histogram.
Definition: BCH2D.cxx:91
virtual std::vector< double > DefaultIntervals(int nbands=-1)
Return default intervals.
Definition: BCH2D.cxx:74
TLegendEntry * AddLegendEntry(TObject *obj, const std::string &label, const std::string &options)
Add legend entry, checking first for unused extra entries.
Definition: BCHistogramBase.cxx:715
virtual void CheckIntervals(std::vector< double > &intervals, int sort)
Check intervals: remove values below 0 or above 1.
Definition: BCHistogramBase.cxx:310
virtual void CopyOptions(const BCHistogramBase &other)
Copy options from.
Definition: BCHistogramBase.cxx:97
std::vector< std::pair< double, double > > GetSmallestIntervalBounds(std::vector< double > masses, bool overcoverage=true)
Get probability density levels bounding from below the smallest-interval levels with probability mass...
Definition: BCHistogramBase.cxx:382
void SetDrawGlobalMode(bool flag=true, bool arrows=true)
Set drawing of global mode.
Definition: BCHistogramBase.h:434
virtual std::vector< double > DefaultIntervals(int nbands=-1)
Return default intervals.
Definition: BCHistogramBase.cxx:334
void SetDrawLocalMode(bool flag=true, bool arrows=true)
Set drawing of global mode.
Definition: BCHistogramBase.h:445
virtual void CheckIntervals(std::vector< double > &intervals)
Check intervals: remove values below 0 or above 1, and sort to proper order band type.
Definition: BCH2D.cxx:67
TLegendEntry * AddBandLegendEntry(TObject *obj, const std::string &label, const std::string &options)
Add band legend entry, creating unused extra entries if necessary.
Definition: BCHistogramBase.cxx:728
TGraph * CalculateProfileGraph(BCH2DProfileAxis axis, BCH2DProfileType pt=kProfileMean)
Return a graph of the profile along x or y.
Definition: BCH2D.cxx:182