R/ProjSDD.R

Defines functions ProjSDD

Documented in ProjSDD

ProjSDD <-
function(A,max_iter_SDD=20,eps=NA){
  p = nrow(A)
  G = A
  I = matrix(0,p,p)
  for (i in 1:max_iter_SDD){
    PsG = (G+t(G))/2
    newG = ProjDD(PsG-I)
    I = newG - (PsG-I)
    if (!is.na(eps) && norm(G-newG,'F')<eps){
      break
    }
    G = newG
  }
  return(PsG)
}

Try the ddpca package in your browser

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

ddpca documentation built on Sept. 15, 2019, 1:03 a.m.