probabilistic_model.distributions.helper

probabilistic_model.distributions.helper#

Functions#

make_dirac(...)

Creates a Dirac distribution for a given variable and value.

Module Contents#

probabilistic_model.distributions.helper.make_dirac(variable, value) probabilistic_model.distributions.distributions.UnivariateDistribution#

Creates a Dirac distribution for a given variable and value.

This function constructs a Dirac distribution tailored to the type of the input variable. It supports creating distributions for continuous, symbolic, and integer variables.

Parameters:
  • variable – The variable for which the Dirac distribution is created.

  • value – The value at which the Dirac distribution is centered.

Returns:

The dirac-like distribution

Raises:

NotImplementedError – When the variable type is unsupported.