ProductDistribution

class qdflow.util.distribution.ProductDistribution(dist_1, dist_2)

Bases: Distribution[T], Generic[T]

A distribution defined by the product of the values drawn from two other distributions.

Parameters:
  • dist_1 (Distribution[T] | T) – The distributions to multiply together.

  • dist_2 (Distribution[T] | T) – The distributions to multiply together.

__init__(dist_1, dist_2)

Methods

draw(rng[, size])

Draws one or more samples from the distribution.