set_values¶
-
zfit.param.
set_values
(params, values)[source]¶ Set the values (using a context manager or not) of multiple parameters.
- Parameters
params (
Union
[Parameter
,Iterable
[Parameter
]]) – Parameters to set the values.values (
Union
[int
,float
,complex
,Tensor
,ForwardRef
,Iterable
[Union
[int
,float
,complex
,Tensor
,ForwardRef
]],ZfitResult
]) – List-like object that supports indexing.
- Returns
An object for a context manager (but can also be used without), can be ignored.
- Raises
ValueError – If the value is not between the limits of the parameter