ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Go to the source code of this file.
Functions | |
function | getLogPDF (in x, in mean, in invcov) |
Return the corresponding natural logarithm(s) of Probability Density Function (PDF) of the input ndim -dimensional multivariate Normal random vector(s).More... | |
function getLogPDF | ( | in | x, |
in | mean, | ||
in | invcov | ||
) |
Return the corresponding natural logarithm(s) of Probability Density Function (PDF) of the input ndim
-dimensional multivariate Normal random vector(s).
This log-PDF function can be potentially faster and more flexible than the intrinsic MATLAB equivalent because it optionally accepts vectors of MVN random variates and returns the natural logarithm of the density function which avoids a costly exponentiation.
[in] | x | : The input vector of shape [ndim, nvec] of MATLAB real , representing the set of nvec MVN vectors from the ndim -dimensional MVN space. |
[in] | mean | : The input vector of shape [ndim, 1] of MATLAB real , representing the mean of a Multivariate Normal distribution in size(mean) dimensional space.If the input value is empty, it is set to the default value. (optional. default = zeros(ndim, 1) .) |
[in] | invcov | : The input positive-definite square matrix of shape [ndim, ndim] of MATLAB real , representing the inverse of the covariance matrix of the target Multivariate Normal distribution in numel(mean) dimensional space.If the input value is empty, it is set to the default value. Note that the inverse covariance matrix can be readily obtained from its lower or upper Cholesky factorization ( cholow or choupp ) via pm.matlab.inv(cholow) or pm.matlab.inv(choupp').(optional. default = eye(ndim, ndim) .) |
logPDF
: The output column vector of MATLAB real
of shape [nvec, 1]
containing the natural logarithm(s) of the input MVN vector(s).
Possible calling interfaces ⛓
Example usage ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.