kernlab (version 0.9-13)

kpca-class: Class "kpca"

Description

The Kernel Principal Components Analysis class

Arguments

Objects of class "kpca"

Objects can be created by calls of the form new("kpca", ...). or by calling the kpca function.

See Also

ksvm-class, kcca-class

Examples

Run this code
# another example using the iris
data(iris)
test <- sample(1:50,20)

kpc <- kpca(~.,data=iris[-test,-5],kernel="rbfdot",kpar=list(sigma=0.2),features=2)

#print the principal component vectors
pcv(kpc)
rotated(kpc)
kernelf(kpc)
eig(kpc)

Run the code above in your browser using DataCamp Workspace