Learn R Programming

semisupKernelPCA (version 0.1.5)

transformKernel: Transforms a Kernel matrix as specified by a linkinfo object

Description

Transforms a Kernel matrix as specified by a linkinfo object

Usage

## S3 method for class 'matrix':
transformKernel(kern, linkinfo, type=c("none", "simple", "extended"), 
		linkfun=function(x) x^(1/6), notlinkfun=function(x) {1 - (1-x)^(1/6)})

Arguments

kern
the kernel matrix to transform
linkinfo
linkinfo object that specifies the similarities to transform
type
among c("none", "simple", "extended"), see reference for explanation
linkfun
function applied to similarities that match the linkinfo$link relation
notlinkfun
function applied to similarities that match the linkinfo$notlink relation

References

Pierrick Bruneau and Benoit Otjacques An Interactive, Example-Based, Visual Clustering System Tech Report, CRP Gabriel Lippmann, 2013 http://hal.archives-ouvertes.fr/hal-00797367

See Also

linkinfo

Examples

Run this code
data(iris)

krn <- computeKernel(iris[,1:4])
lk <- linkinfo(krn)
lk <- add(lk, 1, 5, "link")
lk <- add(lk, 3, 55, "notlink")
krn <- transformKernel(krn, lk, "extended")

Run the code above in your browser using DataLab