bregman.application.distribution package

Subpackages

Submodules

bregman.application.distribution.distribution module

class bregman.application.distribution.distribution.DistributionManifold(theta_generator: Generator, eta_generator: Generator | None, display_factory_class: type[MyDisplayPoint], dimension: int)

Bases: ApplicationManifold[MyDisplayPoint], Generic[MyDisplayPoint, MyDistribution], ABC

Abstract class for statistical manifolds of distributions.

abstract distribution_to_point(distribution: MyDistribution) MyDisplayPoint

Converts a distribution object to a point in the manifold.

Parameters:

distribution – Distribution object to be converted.

Returns:

Point corresponding to the distribution object.

jensen_shannon_divergence(point_1: Point, point_2: Point) ndarray

Jensen-Shannon-Divergence between two points (their distributions) in the manifold.

Parameters:
  • point_1 – Left-sided argument of the KL-Divergence.

  • point_2 – Right-sided argument of the KL-Divergence.

Returns:

Jensen-Shannon-Divergence between point_1 and point_2’s corresponding distributions.

kl_divergence(point_1: Point, point_2: Point) ndarray

KL-Divergence between two points (their distributions) in the manifold.

Parameters:
  • point_1 – Left-sided argument of the KL-Divergence.

  • point_2 – Right-sided argument of the KL-Divergence.

Returns:

KL-Divergence between point_1 and point_2’s corresponding distributions.

abstract point_to_distribution(point: MyDisplayPoint) MyDistribution

Converts a point to a distribution object.

Parameters:

point – Point to be converted.

Returns:

Distribution object corresponding to the point.

Module contents