# R package for change-point detection in covariance structure
# Copyright (C) 2016 Valeriy Avanesov acopich@gmail.com
cov2ZVar = function(nullCov) function(stableSet, hatTheta) {
theta = solve(nullCov)
theta[abs(theta) < 1e-5] = 0
getGaussianSigmas(theta)
}
hatTheta2GaussianSigmas = function(stableSet, hatTheta) {
getGaussianSigmas(hatTheta)
}
getGaussianSigmas = function(theta) {
d = diag(theta)
return(theta^2 + d %*% t(d))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.