R/kPCA.default.R

Defines functions kPCA.default

Documented in kPCA.default

kPCA.default <-
function(x, theta = NULL, ...) {
  
  if (is.null(x)) stop("error: no data supplied!")
  gaussKernel <- gaussKern(x, theta = theta)  
  K <- gaussKernel$K
  theta <- gaussKernel$theta
  
  
  objectPC <- getPrincipalComponents(K)
  object <- list(KPCs = objectPC$KPCs, Es = objectPC$Es, Vecs = objectPC$Vecs, K = K, theta = theta, x  = x)
  class(object) = "kPCA"  
  return(object)
}

Try the BKPC package in your browser

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

BKPC documentation built on May 1, 2019, 9:10 p.m.