Triangular Multivariate Normal¤
distreqx.distributions.mvn_tri.MultivariateNormalTri (AbstractMultivariateNormalFromBijector)
¤
Multivariate normal distribution on R^k
.
The MultivariateNormalTri
distribution is parameterized by a k
-length
location (mean) vector b
and a (lower or upper) triangular scale matrix S
of size k x k
. The covariance matrix is C = S @ S.T
.
__init__(self, loc: Optional[Array] = None, scale_tri: Optional[Array] = None, is_lower: bool = True)
¤
Initializes a MultivariateNormalTri distribution.
Arguments:
loc
: Mean vector of the distribution of shapek
. If not specified, it defaults to zeros.scale_tri
: The scale matrixS
. It must be ak x k
triangular matrix. Ifscale_tri
is not triangular, the entries above or below the main diagonal will be ignored. The parameteris_lower
specifies ifscale_tri
is lower or upper triangular. It is the responsibility of the user to make sure thatscale_tri
only contains non-zero elements in its diagonal; this class makes no attempt to verify that. Ifscale_tri
is not specified, it defaults to the identity.is_lower
: Indicates ifscale_tri
is lower (if True) or upper (if False) triangular.