math

zfit.core.math.interpolate(t, c)[source]

Multilinear interpolation on a rectangular grid of arbitrary number of dimensions.

Parameters:
  • t (tf.Tensor) – Grid (of rank N)
  • c (tf.Tensor) – Tensor of coordinates for which the interpolation is performed
Returns:

1D tensor of interpolated value

Return type:

tf.Tensor

zfit.core.math.poly_complex(*args, real_x=False)[source]

Complex polynomial with the last arg being x.

Parameters:
  • *args (tf.Tensor or equ.) – Coefficients of the polynomial
  • real_x (bool) – If True, x is assumed to be real.
Returns:

Return type:

tf.Tensor