R/getDesparsifiedPrecisionMatrixEstimator.R

Defines functions getDesparsifiedEstimator getDesparsifiedPrecisionMatrixEstimator

# R package for change-point detection in covariance structure
# Copyright (C) 2016 Valeriy Avanesov acopich@gmail.com 

getDesparsifiedPrecisionMatrixEstimator = function(Var, GL) function(windowSize) function(data) {
  as.vector(getDesparsifiedEstimator(data, GL(data)) / sqrt(Var/windowSize))
}

getDesparsifiedEstimator = function(data, theta) {
  sigma = Cov(data)
  theta + t(theta) - t(theta) %*% sigma %*% theta
}
akopich/covcp documentation built on April 14, 2021, 5:54 p.m.