ott.tools.gaussian_mixture.gaussian.Gaussian.from_random#

classmethod Gaussian.from_random(key, n_dimensions, stdev_mean=0.1, stdev_cov=0.1, ridge=0, dtype=None)[source]#

Construct a random Gaussian.

Parameters
  • key (Array) – jax.random seed

  • n_dimensions (int) – desired covariance dimensions

  • stdev – standard deviation of loc and log eigenvalues (means for both are 0)

  • dtype (Optional[dtype]) – data type

  • stdev_mean (float) –

  • stdev_cov (float) –

  • ridge (Union[float, jax._src.numpy.lax_numpy.array]) –

Return type

Gaussian

Returns

A random Gaussian.