Data#

Data can be unbinned or binned. If unbinned, the data is stored in a Data object while binned data, or histogram-like data, is stored in a BinnedData object.

The binned data is built closely to the histograms in the boost-histogram and especially Hist libraries and has to and from methods to seamlessly go back and forth between the libraries. Furthermore, BinnedData implements the Unified Histogram Interface, UHI and zfit often expects only an object that implements the UHI.

zfit.data.Data(data, *[, obs, weights, ...])

Create data, a thin wrapper around an array-like structure that supports weights and limits.

zfit.data.BinnedData(*, holder[, use_hash, ...])

Create a binned data object from a BinnedHolder.

zfit.data.RegularBinning(bins, start, stop, ...)

zfit.data.VariableBinning(edges, *, name)

zfit.data.SamplerData(data, *, ...[, ...])

Create a SamplerData object.

zfit.data.BinnedSamplerData(dataset, *, ...)

The BinnedSampler is a binned data object that can be resampled, i.e. modified in-place.