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, defaultslice(None, None)) – set of parameters to be used within the distribution.
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
domainWhich parameters should be used during the computation of the pdf