atmos_flux_inversion.noise module

Generate noise.

Generated values have zero mean unless specified.

Mostly for use in testing.

atmos_flux_inversion.noise.gaussian_noise(cov, size=None)[source]

Generate gaussian noise with the given covariance.

Parameters
  • cov (LinearOperator[N,N]) –

  • size (int or tuple of int, optional) –

Returns

Samples of multivariate Gaussian noise

Return type

array_like[.., N]

Raises

ValueError – If cov not a square matrix

Notes

implementation largely copied from numpy.random.multivariate_normal()