gaussian_covariance#
- dageo.utils.gaussian_covariance(nx, ny, length, theta, variance, dtype='float32')[source]#
Return covariance matrix with Gaussian properties
Generate covariance matrix based on grid size, anisotropy, and statistical parameters.
- Parameters:
- nx, nyint
Dimensions of the grid.
- lengthfloat
Length scales for the correlation of the property.
- thetafloat
Rotation angle for the anisotropy in the property field.
- variancefloat
Variance of the property.
- dtypestr, default: ‘float32’
Data type for computations.
- Returns:
- covndarray
Covariance matrix for the property field.