convert_to_parameter#

zfit.param.convert_to_parameter(value, name=None, prefer_constant=True, params=None, lower=None, upper=None, step_size=None, dependents=None)[source]#

Convert a numerical to a constant/floating parameter or return if already a parameter. (deprecated arguments)

Warning: SOME ARGUMENTS ARE DEPRECATED: (dependents). They will be removed in a future version. Instructions for updating: Use params instead.

Parameters
  • value

  • name (str | None) –

  • prefer_constant (bool) – If True, create a ConstantParameter instead of a Parameter, if possible.

  • params

  • lower

  • upper

  • step_size

Return type

ZfitParameter