Description Usage Arguments Value See Also Examples
View source: R/Gaussian_Inference.r
Generate the the density value of the posterior distribution of the following structure:
x \sim Gaussian(mu,Sigma)
mu \sim Gaussian(m,S)
Where Sigma is known. Gaussian() is the Gaussian distribution. See ?dGaussian
for the definition of Gaussian distribution.
The model structure and prior parameters are stored in a "GaussianGaussian" object.
Posterior density is the density function of Gaussian(mu|m,S).
1 2 | ## S3 method for class 'GaussianGaussian'
dPosterior(obj, mu, LOG = TRUE, ...)
|
obj |
A "GaussianGaussian" object. |
mu |
matrix, or the ones that can be converted to matrix. Each row of mu is an sample. |
LOG |
Return the log density if set to "TRUE". |
... |
Additional arguments to be passed to other inherited types. |
A numeric vector of the same length as nrow(mu), the posterior density.
GaussianGaussian
, rPosterior.GaussianGaussian
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.