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 (~ParamTypeInput) – The parameters to constraint.
observation (
Union
[int
,float
,complex
,Tensor
,ForwardRef
]) – observed values of the parameter.uncertainty (
Union
[int
,float
,complex
,Tensor
,ForwardRef
]) – 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.