Learn R Programming

EMMIXskew (version 1.0.3)

inverse: Inverse of a covariance matrix

Description

Calculate the inverse of a covariance matrix.

Usage

inverse(sigma, p)

Arguments

sigma

The covariance matrix.

p

The dimension of the matrix.

Value

The inverse of the covariance matrix.

Examples

Run this code
# NOT RUN {
a<- matrix(c(1,0,0,0),ncol=2)
a
inverse(a,2)

# }

Run the code above in your browser using DataLab