jax_privacy.matrix_factorization.buffered_toeplitz.robust_max_error_Gamma_jk

jax_privacy.matrix_factorization.buffered_toeplitz.robust_max_error_Gamma_jk#

jax_privacy.matrix_factorization.buffered_toeplitz.robust_max_error_Gamma_jk(omega1, theta1, omega2, theta2, n)[source]#

Robustly computes _max_error_Gamma_jk.

Robustly computes the Gamma_{j,k} term of the closed-form expression for max-error, by choosing either the direct computation or a Taylor series approximation.

Used below to compute all pairs of Gamma_{j,k} via numpy broadcasting.

Parameters:
  • omega1 (Array) – The omega_j argument (a output_scale value), typically a 1D array.

  • theta1 (Array) – The theta_j argument (a buf_decay value), typically a 1D array.

  • omega2 (Array) – The omega_k argument (a output_scale value), typically a 2D column vector.

  • theta2 (Array) – The theta_k argument (a buf_decay value), typically a 2D column vector.

  • n (Array) – The value of n.

Return type:

Array

Returns:

The value of Gamma_jk.