gen.cov.mat {changepoints} | R Documentation |
Generate population covariance matrix with dimension p.
Description
Generate population covariance matrix with dimension p.
Usage
gen.cov.mat(p, sigma2, type)
Arguments
p |
A |
sigma2 |
A positive |
type |
Specify the type of a covariance matrix: Diagonal structure ("diagonal"); Equal correlation structure ("equal"); Power decay structure ("power"). |
Value
A numeric
p-by-p matrix.
Author(s)
Haotian Xu
Examples
gen.cov.mat(p = 5, sigma2 = 1, type = "diagonal")
[Package changepoints version 1.1.0 Index]