View source: R/invertCovMatrix.R
invertCovMatrix | R Documentation |
The covariance matrix of noisy data is inverted. Special care is taken in treating spurious small modes of the matrix, which are likely to arise from too much noise in the data.
invertCovMatrix(cf, boot.l = 1, boot.samples = FALSE, cov_fn = cov)
cf |
The data for which the covariance matrix is to be computed. It is expected to be an array or matrix with dimension RxN, where R is the number of observations and N the number of observables.
|
boot.l |
If set to a value larger than 1 the data will be blocked with
blocklength |
boot.samples |
If set to |
cov_fn |
Function that computes the covariance matrix from the given samples. |
The inverse covariance matrix is estimated. If the number of observations is too small the procedure described in the reference is used to remove spuriously small eigenvalues of the covariance matrix.
We always keep the sqrt(R) largest eigenvalues exactly and replace the remaining smallest ones by their mean.
Returns the inverse covariance matrix as an object of class
matrix
.
Carsten Urbach, curbach@gmx.de
C.Michael, A.McKerrell, Phys.Rev. D51 (1995) 3745-3750, hep-lat/9412087
cov
, matrix
X <- array(rnorm(4000), dim=c(1000, 4)) invertCovMatrix(cf=X, boot.samples=TRUE) M <- invertCovMatrix(cf=X, boot.samples=TRUE) M
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.