PyDDM.ddm_calc.radial_avg_ddm_matrix

PyDDM.ddm_calc.radial_avg_ddm_matrix

radial_avg_ddm_matrix(ddm_matrix, mask=None, centralAngle=None, angRange=None, remove_vert_line=True, remove_hor_line=False)

Radially averages DDM matrix.

For DDM analysis, if we can assume isotropic dynamics, we radially average the DDM matrix so that the data is a function of the magnitude of the wavevector q (rather than on the vector determined by q_x and q_y).

Parameters
  • ddm_matrix (array) – DDM matrix to be radially averaged. This must be a 3D matrix. The first dimension corresponds to lag time. The second and third dimensions are the x and y components of the wavevector.

  • mask ({None}, optional) – Array to be applied as mask to DDM matrix.

  • centralAngle ({None}, optional) – DESC

  • angRange ({None}, optional) – DESC

  • remove_vert_line ({True}, optional) – DESC

Returns

ravs – Radially averaged DDM matrix. This will be a 2D array. The first dimension corresponds to the lag time. The second dimension corresponds to the magnitude of the wavevector.

Return type

array