spey.backends.distributions.Normal

spey.backends.distributions.Normal#

class spey.backends.distributions.Normal(loc: ndarray, scale: ndarray, domain: slice = slice(None, None, None))[source]#

Normal distribution

Parameters:
  • loc (np.ndarray) – Mean of the distribution.

  • scale (np.ndarray) – standard deviation.

  • domain (slice, default slice(None, None)) – set of parameters to be used within the distribution.

__init__(loc: ndarray, scale: ndarray, domain: slice = slice(None, None, None))[source]#

Methods

__init__(loc, scale[, domain])

expected_data()

The expectation value of the Normal distribution.

log_prob(value)

Compute log-probability

sample(value, sample_size)

Generate samples

Attributes

domain

Which parameters should be used during the computation of the pdf