Binned PDFs#

Binned PDFs extend the functionality of unbinned PDFs by providing more histogram-like features in addition to the basic unbinned PDFs. They interface with the Unified Histogram Interface (uhi) that is provided boost-histogram and especially Hist.

Below are the available binned PDFs:

Histogram PDF#

The HistogramPDF creates a PDF from a histogram, preserving the bin structure and values.

HistogramPDF with different shapes

zfit.pdf.HistogramPDF(data[, extended, ...])

Binned PDF resembling a histogram.

Binwise Scale Modifier#

The BinwiseScaleModifier allows modifying individual bins of a binned PDF with scale factors.

BinwiseScaleModifier with different scale patterns

zfit.pdf.BinwiseScaleModifier(pdf[, ...])

Modifier that scales each bin separately of the pdf.

Binned From Unbinned PDF#

The BinnedFromUnbinnedPDF converts an unbinned PDF to a binned representation.

BinnedFromUnbinnedPDF comparison

zfit.pdf.BinnedFromUnbinnedPDF(pdf, space, *)

Create a binned pdf from an unbinned pdf binning in space.

Spline Morphing PDF#

The SplineMorphingPDF creates a morphing between different template histograms using spline interpolation.

SplineMorphingPDF with different parameter values

zfit.pdf.SplineMorphingPDF(alpha, hists, *)

Morphing a set of histograms with a spline interpolation.

Binned Sum PDF#

The BinnedSumPDF combines multiple binned PDFs with different fractions.

BinnedSumPDF with different component fractions

zfit.pdf.BinnedSumPDF(pdfs[, fracs, obs, ...])

Sum of binned PDFs.

Spline PDF#

The SplinePDF creates a PDF from spline interpolation between points.

SplinePDF with different shapes

zfit.pdf.SplinePDF(pdf[, order, obs, ...])

Spline interpolate a binned PDF in order to get a smooth, unbinned PDF.

Unbinned From Binned PDF#

The UnbinnedFromBinnedPDF converts a binned PDF to an unbinned representation.

UnbinnedFromBinnedPDF comparison

zfit.pdf.UnbinnedFromBinnedPDF(pdf[, obs, ...])

Create a unbinned pdf from a binned pdf.

All Binned PDFs

zfit.pdf.HistogramPDF(data[, extended, ...])

Binned PDF resembling a histogram.

zfit.pdf.BinwiseScaleModifier(pdf[, ...])

Modifier that scales each bin separately of the pdf.

zfit.pdf.BinnedFromUnbinnedPDF(pdf, space, *)

Create a binned pdf from an unbinned pdf binning in space.

zfit.pdf.SplineMorphingPDF(alpha, hists, *)

Morphing a set of histograms with a spline interpolation.

zfit.pdf.BinnedSumPDF(pdfs[, fracs, obs, ...])

Sum of binned PDFs.

zfit.pdf.SplinePDF(pdf[, order, obs, ...])

Spline interpolate a binned PDF in order to get a smooth, unbinned PDF.

zfit.pdf.UnbinnedFromBinnedPDF(pdf[, obs, ...])

Create a unbinned pdf from a binned pdf.