Uniform

class qdflow.util.distribution.Uniform(min, max)

Bases: Distribution[float]

A uniform distribution with range [min, max).

Parameters:
  • min (float) – The left side (inclusive) of the interval to draw from.

  • max (float) – The right side (exclusive) of the interval to draw from.

__init__(min, max)

Methods

draw(rng[, size])

Draws one or more samples from the distribution.