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