mrpro.utils.slice_profiles.SliceGaussian
- class mrpro.utils.slice_profiles.SliceGaussian(fwhm: float | Tensor)[source]
Bases:
SliceProfileBase
Gaussian Slice Profile.
- __init__(fwhm: float | Tensor)[source]
Initialize the Gaussian Slice Profile.
- Parameters:
fwhm – Full width at half maximum of the Gaussian
- forward(x: Tensor) Tensor [source]
Evaluate the Gaussian Slice Profile at a position.
- Parameters:
x – Position at which to evaluate the profile
- Return type:
Value of the profile / intensity at the given position
- random_sample(size: Sequence[int]) Tensor
Sample n random positions from the profile.
Use the profile as a probability density function to sample positions.
- Parameters:
size – Number of positions to sample
- Return type:
Sampled positions, shape will be size.