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));
RooPlot *
frame2 =
x.frame(Title(
"Adaptive kernel estimation pdf with regular, increased bandwidth"));
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);
frame2->GetYaxis()->SetTitleOffset(1.8);
gPad->SetLeftMargin(0.15);
hh_data->GetZaxis()->SetTitleOffset(1.4);
gPad->SetLeftMargin(0.20);
hh_pdf->GetZaxis()->SetTitleOffset(2.4);
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
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.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
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.
TH1 is the base class of all histogram classes in ROOT.
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg={})
RooCmdArg Binning(const RooAbsBinning &binning)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...