SumDistribution
- class qdflow.util.distribution.SumDistribution(dist_1, dist_2)
Bases:
Distribution[T],Generic[T]A distribution defined by the sum of the values drawn from two other distributions.
- Parameters:
dist_1 (Distribution[T] | T) – The distributions to add together.
dist_2 (Distribution[T] | T) – The distributions to add together.
- __init__(dist_1, dist_2)
Methods
draw(rng[, size])Draws one or more samples from the distribution.