create_polynomial_density#

mrinufft.trajectories.sampling.create_polynomial_density(shape: tuple[int, ...], decay: float, resolution: ndarray[tuple[int, ...], dtype[_ScalarType_co]] | None = None) ndarray[tuple[int, ...], dtype[_ScalarType_co]][source]#

Create a density with polynomial decay from the center.

Parameters:
  • shape (tuple of int) – The shape of the density grid.

  • decay (float) – The exponent that controls the rate of decay for density.

  • resolution (NDArray, optional) – Resolution scaling factors for each dimension of the density grid, by default None.

Returns:

A density array with polynomial decay.

Return type:

NDArray