Learn R Programming

DCEM (version 1.0.0)

cov_mv: cov_mv: Part of DCEM package.

Description

Initializes the co-variance matrices as the identity matrices for the Gaussian(s). The list will simply contain one co-variance matrix per Gaussian. If the user specifies 3 cluster(s) then there will be 3 entries in the list.

Usage

cov_mv(num_cov, numcol)

Arguments

num_cov

(numeric): Number of covariance matrices corresponding to the cluster(s).

numcol

(numeric): The number of columns in the dataset.

Value

A list of identity matrices. The number of entries in the list is equal to the input parameter (num_cov).

The elements of the list can be accessed as - list[[1]] or list[[2]].

Details

The dimensions of each matrix will be numcol * numcol where numcol is the number of columns in the dataset.

Examples

Run this code
# NOT RUN {
# Genrating the Identity matrix as the co-variance matrix.

cov_mv(2, 3)
cov_mv(10, 100)

# }

Run the code above in your browser using DataLab