distortions: distortions

Description Usage Arguments Value Author(s) References See Also Examples

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

1
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

Author(s)

Pierrick Bruneau

References

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

See Also

computeKernel computeProjectionFromKernel

Examples

1
2
3
4
5
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)


Search within the semisupKernelPCA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.