\ :py:mod:`clipppy.utils.distributions.extra_delta` =================================================== .. py:module:: clipppy.utils.distributions.extra_delta Module Contents --------------- .. py:class:: ExtraDelta(*args, extra_event_dim: int, **kwargs) Degenerate discrete distribution (a single point). Discrete distribution that assigns probability one to the single element in its support. Delta distribution parameterized by a random choice should not be used with MCMC based inference, as doing so produces incorrect results. :param torch.Tensor v: The single support element. :param torch.Tensor log_density: An optional density for this Delta. This is useful to keep the class of :class:`Delta` distributions closed under differentiable transformation. :param int event_dim: Optional event dimension, defaults to zero. .. py:method:: log_prob(self, x) Returns the log of the probability density/mass function evaluated at `value`. Args: value (Tensor):