FullyCorrelated

class qdflow.util.distribution.FullyCorrelated(dist, n)

Bases: CorrelatedDistribution[T], Generic[T]

A CorrelatedDistribution which returns n copies of the value drawn from a Distribution.

Parameters:
  • dist (Distribution[T]) – The distribution to draw values from.

  • n (int) – The number of variables. All variables will yield the same values as one another on a given draw.

__init__(dist, n)

Methods

draw(rng[, size])

Draws one or more samples from the distribution.