stack_random

Contents

stack_random#

mrinufft.trajectories.tools.stack_random(trajectory, dim_size, center_prop=0.0, accel=4, pdf='uniform', rng=None, order='center-out')[source]#

Stack a 2D trajectory with random location.

Parameters:
  • traj (np.ndarray) – Existing 2D trajectory.

  • dim_size (int) – Size of the k_z dimension

  • center_prop (int or float) – Number of line or proportion of slice to sample in the center of the k-space

  • accel (int) – Undersampling/Acceleration factor

  • pdf (str or np.array) – Probability density function for the remaining samples. “uniform” (default), “gaussian” or np.array

  • rng (random state)

  • order (str) – Order of the lines, “center-out” (default), “random” or “top-down”

  • trajectory (ndarray[Any, dtype[_ScalarType_co]])

Returns:

The 3D trajectory stacked along the \(k_z\) axis.

Return type:

numpy.ndarray