ptypy.engines.utils.basic_fourier_update_LEGACY#

ptypy.engines.utils.basic_fourier_update_LEGACY(diff_view, pbound=None, alpha=1.0, LL_error=True)#

* DEPRECATED * Fourier update a single view using its associated pods. Updates on all pods’ exit waves.

Parameters:
  • diff_view (View) – View to diffraction data

  • alpha (float, optional) – Mixing between old and new exit wave. Valid interval [0, 1]

  • pbound (float, optional) – Power bound. Fourier update is bypassed if the quadratic deviation between diffraction data and diff_view is below this value. If None, fourier update always happens.

  • LL_error (bool) – If True, calculates log-likelihood and puts it in the last entry of the returned error vector, else puts in 0.0

Returns:

error – 1d array, error = np.array([err_fmag, err_phot, err_exit]).

  • err_fmag, Fourier magnitude error; quadratic deviation from root of experimental data

  • err_phot, quadratic deviation from experimental data (photons)

  • err_exit, quadratic deviation of exit waves before and after Fourier iteration

Return type:

ndarray