{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _multivariate / matrix_normal_gen / pdf

function

scipy.stats._multivariate:matrix_normal_gen.pdf

source: /scipy/stats/_multivariate.py :1371

Signature

def   pdf ( self X mean = None rowcov = 1 colcov = 1 )

Summary

Matrix normal probability density function.

Parameters

X : array_like

Quantiles, with the last two axes of X denoting the components.

mean : array_like, optional

Mean of the distribution (default: None)

rowcov : array_like, optional

Among-row covariance matrix of the distribution (default: 1)

colcov : array_like, optional

Among-column covariance matrix of the distribution (default: 1)

Returns

pdf : ndarray

Probability density function evaluated at X

Notes

If mean is set to None then a matrix of zeros is used for the mean. The dimensions of this matrix are inferred from the shape of rowcov and colcov, if these are provided, or set to 1 if ambiguous.

rowcov and colcov can be two-dimensional array_likes specifying the covariance matrices directly. Alternatively, a one-dimensional array will be be interpreted as the entries of a diagonal matrix, and a scalar or zero-dimensional array will be interpreted as this value times the identity matrix.

Aliases

  • scipy.stats._multivariate.matrix_normal_gen.pdf