operations

zfit.core.operations.add(object1: Union[zfit.core.interfaces.ZfitParameter, zfit.core.interfaces.ZfitFunction, zfit.core.interfaces.ZfitPDF], object2: Union[zfit.core.interfaces.ZfitParameter, zfit.core.interfaces.ZfitFunction, zfit.core.interfaces.ZfitPDF]) → Union[zfit.core.interfaces.ZfitParameter, zfit.core.interfaces.ZfitFunction, zfit.core.interfaces.ZfitPDF][source]

Add two objects and return a new object (may depending on the old).

Parameters
  • () (object2) – A ZfitParameter, ZfitFunc or ZfitPDF to add with object2

  • () – A ZfitParameter, ZfitFunc or ZfitPDF to add with object1

zfit.core.operations.add_func_func(func1: zfit.core.interfaces.ZfitFunc, func2: zfit.core.interfaces.ZfitFunc, name: str = 'add_func_func') → SumFunc[source]
zfit.core.operations.add_param_func(param: zfit.core.interfaces.ZfitParameter, func: zfit.core.interfaces.ZfitFunc) → zfit.core.interfaces.ZfitFunc[source]
zfit.core.operations.add_param_param(param1: zfit.core.interfaces.ZfitParameter, param2: zfit.core.interfaces.ZfitParameter) → zfit.core.interfaces.ZfitParameter[source]
zfit.core.operations.add_pdf_pdf(pdf1: zfit.core.interfaces.ZfitPDF, pdf2: zfit.core.interfaces.ZfitPDF, name: str = 'add_pdf_pdf') → SumPDF[source]
zfit.core.operations.convert_func_to_pdf(func: Union[zfit.core.interfaces.ZfitFunc, Callable], obs=None, name=None) → zfit.core.interfaces.ZfitPDF[source]
zfit.core.operations.convert_pdf_to_func(pdf: zfit.core.interfaces.ZfitPDF, norm_range: Union[Tuple[Tuple[float, ...]], Tuple[float, ...], bool]) → zfit.core.interfaces.ZfitFunc[source]
zfit.core.operations.multiply(object1: Union[zfit.core.interfaces.ZfitParameter, zfit.core.interfaces.ZfitFunction, zfit.core.interfaces.ZfitPDF], object2: Union[zfit.core.interfaces.ZfitParameter, zfit.core.interfaces.ZfitFunction, zfit.core.interfaces.ZfitPDF]) → Union[zfit.core.interfaces.ZfitParameter, zfit.core.interfaces.ZfitFunction, zfit.core.interfaces.ZfitPDF][source]

Multiply two objects and return a new object (may depending on the old).

Parameters
  • () (object2) – A ZfitParameter, ZfitFunc or ZfitPDF to multiply with object2

  • () – A ZfitParameter, ZfitFunc or ZfitPDF to multiply with object1

Raises

TypeError – if one of the objects is neither a ZfitFunc, ZfitPDF or convertable to a ZfitParameter

zfit.core.operations.multiply_func_func(func1: zfit.core.interfaces.ZfitFunc, func2: zfit.core.interfaces.ZfitFunc, name: str = 'multiply_func_func') → ProdFunc[source]
zfit.core.operations.multiply_param_func(param: zfit.core.interfaces.ZfitParameter, func: zfit.core.interfaces.ZfitFunc) → zfit.core.interfaces.ZfitFunc[source]
zfit.core.operations.multiply_param_param(param1: zfit.core.interfaces.ZfitParameter, param2: zfit.core.interfaces.ZfitParameter) → zfit.core.interfaces.ZfitParameter[source]
zfit.core.operations.multiply_param_pdf(param: zfit.core.interfaces.ZfitParameter, pdf: zfit.core.interfaces.ZfitPDF) → zfit.core.interfaces.ZfitPDF[source]
zfit.core.operations.multiply_pdf_pdf(pdf1: zfit.core.interfaces.ZfitPDF, pdf2: zfit.core.interfaces.ZfitPDF, name: str = 'multiply_pdf_pdf') → ProductPDF[source]