Learn R Programming

semisupKernelPCA (version 0.1.5)

distortions: distortions

Description

the same objects are represented by two different datasets: this function computes the pairwise distances in both datasets, and the distortions induced by these distance matrices (see Aupetit, 2007)

Usage

distortions(origdata, projdata)

Arguments

origdata
n x d original dataset
projdata
n x q projected/transformed dataset

Value

  • list object, with components: - compress : vector of n compressive distortion values - stretch : vector of n stretching distortion values

References

Aupetit, M. (2007) Visualizing distortions and recovering topology in continuous projection techniques. Neurocomputing. Pages 1304-1330.

See Also

computeKernel computeProjectionFromKernel

Examples

Run this code
data(iris)
irisdat <- as.matrix(cbind(iris[,1:4], rep(NA, 150)))
irisdat[sample(1:150,4),5] <- 1:4
proj <- computeProjectionFromKernel(computeKernel(irisdat))
dists <- distortions(irisdat[,1:4], proj)

Run the code above in your browser using DataLab