pangeo_fish.distributions.planar2d.normal_at

Contents

pangeo_fish.distributions.planar2d.normal_at#

pangeo_fish.distributions.planar2d.normal_at(grid, *, pos, cov, axes=['X', 'Y'], normalize=False)#

Multivariate normal distribution

Parameters:
  • grid (xarray.Dataset) – The reference grid.

  • pos (xarray.Dataset) – The position of the mean of the distribution

  • cov (xarray.DataArray) – The covariance matrix of the distribution. Has to have a i dimension for variances and i and j for covariances. Both need to have axes as coordinate values.

  • axes (list of hashable, default: [``”X”, ``"Y"]) – The coordinates to use. Can be anything that cf-xarray’s .cf accessor understands.

  • normalize (bool, default: False) – Normalize the distribution before returning.