Demonstrates non central chi-square.
[#1] INFO:InputArguments -- RooNonCentralChiSquare sum being forced
[#0] WARNING:Eval -- RooNonCentralChiSquare did not converge: for x=36 k=2.01, lambda=5 fractional error = 0.00108172
either adjust tolerance with SetErrorTolerance(tol) or max_iter with SetMaxIter(max_it)
{
w.factory(
"NonCentralChiSquare::nc(x[0,50],k[1.99,0,5],lambda[5])");
w.factory(
"NonCentralChiSquare::ncc(x,kk[2.01,0,5],lambda)");
w.factory(
"NonCentralChiSquare::nccc(x,kk,lambda)");
w.factory(
"ChiSquarePdf::cs(x,k)");
std::unique_ptr<RooDataSet> ncdata{
w.pdf(
"nc")->generate(*
w.var(
"x"), 100)};
std::unique_ptr<RooDataSet> csdata{
w.pdf(
"cs")->generate(*
w.var(
"x"), 100)};
}
winID h TVirtualViewer3D TVirtualGLPainter char TVirtualGLPainter plot
The PDF of the Non-Central Chi Square distribution for n degrees of freedom.
Plot frame and a container for graphics objects within that frame.
Persistable container for RooFit projects.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
RooCmdArg MarkerColor(Color_t color)
RooCmdArg LineColor(Color_t color)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
- Author
- Lorenzo Moneta
Definition in file TestNonCentral.C.