Demo for quantiles.
void quantiles() {
TH1F *
h =
new TH1F(
"h",
"demo quantiles",50,-3,3);
for (
Int_t shot=0;shot<nshots;shot++) {
h->FillRandom(
"gaus",50);
h->GetQuantiles(nq,yq,xq);
}
gr->SetTitle(
"final quantiles");
gPad->DrawFrame(0,0,nshots+1,3.2);
}
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
1-D histogram with a float per channel (see TH1 documentation)
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
void Draw(Option_t *option="") override
Draw this box with its current attributes.
- Authors
- Rene Brun, Eddy Offermann
Definition in file quantiles.C.