hepstats.splot#

hepstats.splot.sweights#

compute_sweights(model, x)

Computes sWeights from probability density functions for different components/species in a fit model (for instance signal and background) fitted on some data x.

is_sum_of_extended_pdfs(model)

Checks if the input model is a sum of extended models.

hepstats.splot.exceptions#

ModelNotFittedToData

Exception class for model not fitted to data provided to compute sweights