hepstats.utils.fit.diverse module#

hepstats.utils.fit.diverse.get_ndims(dataset)[source]#

Return the number of dimensions in the dataset

hepstats.utils.fit.diverse.get_value(value)[source]#
hepstats.utils.fit.diverse.set_values_once(params, values)[source]#
hepstats.utils.fit.diverse.eval_pdf(model, x, params=None, allow_extended=False)[source]#

Compute pdf of model at a given point x and for given parameters values

hepstats.utils.fit.diverse.pll(minimizer, loss, pois, init=None)[source]#

Compute minimum profile likelihood for fixed given parameters values.

Return type:

float

hepstats.utils.fit.diverse.set_values(params, values)[source]#
hepstats.utils.fit.diverse.array2dataset(dataset_cls, obs, array, weights=None)[source]#

dataset_cls: only used to get the class in which array/weights will be converted.

hepstats.utils.fit.diverse.get_nevents(dataset)[source]#

Returns the number of events in the dataset