R/npfConfigInit.R

Defines functions npfConfigInit

npfConfigInit <- function(FHat,r){
  
  TauF <- edm2gram(FHat)
  EigenDecomp <- eigen(TauF,symmetric=TRUE)
  FirstRValues <- EigenDecomp$values[1:r]
  Ur <- EigenDecomp$vectors[,1:r]
  Lambdar <- diag(sapply(FirstRValues,max,0))
  P <- Ur %*% sqrt(Lambdar)
  
  return(P)
}

Try the edmcr package in your browser

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

edmcr documentation built on Sept. 10, 2021, 5:10 p.m.