W = iwishrnd(Tau,nu)
generates a matrix of random numbers drawn from an inverse Wishart distribution with the
covariance parameter Tau and nu degrees of freedom.
The inverse of W has the Wishart distribution with the covariance matrix
Sigma = inv(Tau) and nu degrees of freedom.
[W,DInvOut] = iwishrnd(Tau,nu)
also returns the transpose of the inverse of the Cholesky factor of
Tau.
W = iwishrnd(Tau,nu,DInv)
specifies the transpose of the inverse of the Cholesky factor of Tau,
such that DInv'*DInv = inv(Tau), where inv is the MATLAB® inverse function.
Generate a matrix of random numbers from a Wishart distribution with the covariance parameter Tau = inv(Sigma) and four degrees of freedom. Compute and return DInvOut, which is the transpose of the inverse of the Cholesky factor of Tau.
Use DInvOut to generate another matrix of random numbers from an inverse Wishart distribution that has the same covariance parameter and degrees of freedom.
Covariance parameter, specified as a d-by-d
symmetric, positive definite matrix, where d is the dimension of the
inverse Wishart distribution. The inverse of W has the Wishart
distribution with the covariance matrix Sigma = inv(Tau) and
nu degrees of freedom.
Data Types: single | double
Degrees of freedom, specified as a positive scalar.
Data Types: single | double
Transpose of the inverse of the Cholesky factor of Tau,
specified as a lower-triangular numeric matrix with the same dimensions as
Tau. When you specify this argument, the software uses the value
of DInv instead of computing it directly from
Tau according to the expression DInv'*DInv =
inv(Tau).
Inverse Wishart random numbers, returned as an array of scalar values with the same
dimensions as Tau. The expected value of W is
equal to Tau/(nu – d – 1), where d is the
dimension of Tau.
Transpose of the inverse of the Cholesky factor of Tau,
returned as an array of scalar values with the same dimensions as
Tau. DInv is defined by DInv'*DInv
= inv(Tau), where inv is the MATLAB inverse function.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.