nll_gaussian#

zfit.constraint.nll_gaussian(params, observation, uncertainty)[source]#

Return negative log likelihood graph for gaussian constraints on a list of parameters.

Parameters
  • params (TypeVar(ParamTypeInput, zfit.core.interfaces.ZfitParameter, Union[int, float, complex, Tensor, zfit.core.interfaces.ZfitParameter])) – The parameters to constraint.

  • observation (Union[int, float, complex, Tensor, zfit.core.interfaces.ZfitParameter]) – observed values of the parameter.

  • uncertainty (Union[int, float, complex, Tensor, zfit.core.interfaces.ZfitParameter]) – Uncertainties or covariance/error. matrix of the observed values. Can either be a single value, a list of values, an array or a tensor.

Return type

Tensor

Returns

The constraint object.

Raises

ShapeIncompatibleError – if params, mu and sigma don’t have the same size.