R/SSCM2Shape.R

# Calculates theoretic Shape matrix from theoretic SSCM
# input: theoretic SSCM
# tol: absolute tolerance for the approximated eigenvalues
# itermax: maximal number of iterations of the approximation algorithm 
# output: shape matrix

SSCM2Shape <- function(V,itermax=100,tol=10^(-10)) {
eigens <- eigen(V,symmetric=TRUE)
eigenc <- evSSCM2evShape(eigens$values,itermax=itermax,tol=tol)
return(eigens$vectors%*%diag(eigenc)%*%t(eigens$vectors))
}

Try the sscor package in your browser

Any scripts or data that you put into this service are public.

sscor documentation built on May 2, 2019, 2:07 a.m.