pymc.dims.WeightedZeroSumNormal#
- class pymc.dims.WeightedZeroSumNormal(*args, weights=None, core_dims=None, dims=None, default_transform=UNSET, observed=None, **kwargs)[source]#
Weighted zero-sum multivariate normal distribution.
Draws satisfy
(weights * value).sum(core_dim) = 0. Generalization ofZeroSumNormal; with equal weights the two coincide. Exactly one core dimension is supported.- Parameters:
- sigma
xtensor_like, optional The standard deviation of the underlying unconstrained normal distribution. Defaults to 1.0. It cannot have core dimensions.
- weights
xtensor_like Strictly positive weights along the single core dimension.
- core_dims
strorSequenceofstr The single dimension along which the constraint is applied.
- **kwargs
Additional keyword arguments used to define the distribution.
- sigma
- Returns:
XTensorVariableAn xtensor variable representing the weighted zero-sum normal distribution.
Methods
WeightedZeroSumNormal.dist([sigma, weights, ...])