pisces.math_utils.random_fields.RandomField.generate#

abstract RandomField.generate(*args, **kwargs) ndarray[source]#

Generate a realization of the random field.

This method must be implemented by subclasses. It should return a field defined on the spatial grid specified by domain_dimensions and bounding_box.

Returns:

Array representing the generated random field. The shape should be (*domain_dimensions, *field_shape), where field_shape is defined by the subclass (e.g. scalar or vector field).

Return type:

np.ndarray

Notes

  • Implementations may include additional parameters (e.g. power spectrum, spatial envelope) to control the statistical properties of the field.

  • The output should generally be real-valued, even if Fourier methods are used internally.