pyhs3.distributions.Distribution

class pyhs3.distributions.Distribution(*, name, kind='Distribution', parameters=None)[source]

Base class for probability distributions in HS3.

Provides the foundation for all distribution implementations, handling parameter management, constant generation, and symbolic expression evaluation using PyTensor.

name

Name of the distribution.

Type:

str

kind

Type identifier for the distribution.

Type:

str

parameters

List of parameter names this distribution depends on.

Type:

list[str]

constants

Generated constants for numeric parameter values.

Type:

dict[str, T.TensorVar]

Parameters:
__init__(*, name, kind='Distribution', parameters=None)[source]

Base class for distributions.

Parameters:
  • name (str) – Name of the distribution.

  • kind (str) – Type identifier.

name

Name of the distribution.

Type:

str

kind

Type identifier.

Type:

str

parameters

initially empty list to be filled with parameter names.

Type:

list[str]

constants

Generated constants for numeric parameter values.

Type:

dict[str, pt.TensorVar]

Parameters:

parameters (list[str] | None)

Methods

__init__(*, name[, kind, parameters])

Base class for distributions.

expression(_)

Unimplemented

from_dict(config)

Factory method to create a distribution instance from a dictionary.