GaussianRandomField#
- class pisces.math_utils.random_fields.GaussianRandomField(domain_dimensions: ndarray, bounding_box: ndarray, field_shape: tuple[int, ...] | None = None, **kwargs)[source]#
Class for generating Gaussian random fields in arbitrary dimensions.
Methods
__init__
(domain_dimensions, bounding_box[, ...])Compute the meshgrid of spatial coordinates for the random field.
compute_spatial_mgrid
(**kwargs)Compute the meshgrid of spatial coordinates for the random field.
compute_wavenumber_arrays
([fft_type])Compute the 1D wavenumber arrays for each axis of the domain.
compute_wavenumber_mgrid
([fft_type])Compute the meshgrid of wavenumber arrays for the random field.
generate
()Generate a real-space Gaussian random field with the specified power spectrum.
Attributes
Bounding box of the random field.
Domain dimensions of the random field.
Alias for
grid_spacing
.Spatial envelope function modulating the field.
Shape of the field at each grid point.
Range of the grid in each dimension.
Spacing of the grid in each dimension.
Mean field value added to the generated field.
Number of dimensions of the random field.
Power spectrum function defining the statistical properties of the field.