Distribution

class qdflow.util.distribution.Distribution

Bases: ABC, Generic[T]

An abstract class which defines a random distribution.

Subclasses must implement the draw() function, which draws one or more values from the distribution.

__init__()

Methods

abs()

Returns a distribution defined by the absolute value of the value drawn from this distribution.

draw(rng[, size])

Draws one or more samples from the distribution.