void rf707_kernelestimation()
{
std::unique_ptr<RooDataSet> data1{p.generate(
x, 200)};
RooPlot *frame =
x.frame(
Title(
"Adaptive kernel estimation pdf with and w/o mirroring"),
Bins(20));
data1->plotOn(frame);
kest1.plotOn(frame);
RooPlot *frame2 =
x.frame(
Title(
"Adaptive kernel estimation pdf with regular, increased bandwidth"));
kest1.plotOn(frame2);
std::unique_ptr<RooDataSet> data2{pxy.generate({
x,
y}, 1000)};
TCanvas *
c =
new TCanvas(
"rf707_kernelestimation",
"rf707_kernelestimation", 800, 800);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.20);
hh_pdf2->
Draw(
"surfsame");
}
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Class RooKeysPdf implements a one-dimensional kernel estimation p.d.f which model the distribution of...
Generic N-dimensional implementation of a kernel estimation p.d.f.
Plot frame and a container for graphics objects within that frame.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
RooPolynomial implements a polynomial p.d.f of the form.
Efficient implementation of a product of PDFs of the form.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
RooCmdArg Title(const char *name)
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg={})
RooCmdArg Bins(Int_t nbin)
RooCmdArg Binning(const RooAbsBinning &binning)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...