AbsDistribution

class qdflow.util.distribution.AbsDistribution(dist)

Bases: Distribution[T], Generic[T]

A distribution defined by the absolute value of the value drawn from another distribution.

Parameters:

dist (Distribution[T]) – The distribution to take the absolute value of.

__init__(dist)

Methods

draw(rng[, size])

Draws one or more samples from the distribution.