kpca-class | R Documentation |
The Kernel Principal Components Analysis class
Objects can be created by calls of the form new("kpca", ...)
.
or by calling the kpca
function.
pcv
:Object of class "matrix"
containing the
principal component vectors
eig
:Object of class "vector"
containing the
corresponding eigenvalues
rotated
:Object of class "matrix"
containing the
projection of the data on the principal components
kernelf
:Object of class "function"
containing
the kernel function used
kpar
:Object of class "list"
containing the
kernel parameters used
xmatrix
:Object of class "matrix"
containing
the data matrix used
kcall
:Object of class "ANY"
containing the
function call
n.action
:Object of class "ANY"
containing the
action performed on NA
signature(object = "kpca")
: returns the eigenvalues
signature(object = "kpca")
: returns the
performed call
signature(object = "kpca")
: returns the used
kernel function
signature(object = "kpca")
: returns the principal
component vectors
signature(object = "kpca")
: embeds new data
signature(object = "kpca")
: returns the
projected data
signature(object = "kpca")
: returns the used
data matrix
Alexandros Karatzoglou
alexandros.karatzoglou@ci.tuwien.ac.at
ksvm-class
,
kcca-class
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.