disvm: Subspace distance

Description Usage Arguments Details Value References Examples

View source: R/sSDR.R

Description

Subspace distance

Usage

1
disvm(v1, v2)

Arguments

v1

A matrix, each column consists of a p-dimensional vector.

v2

A matrix, each column consists of a p-dimensional vector.

Details

This function computes the distances between two spaces using the formulation in Li, Zha, Chiaromonte (2005), which is the Frobenius norm of the difference between the two orthogonal projection matrices defined by v1 and v2.

Value

A scaler represents the distance between the two spaces spanned by v1 and v2 respectively.

References

Li, B., Zha, H., and Chiaromonte, F. (2005). Contour regression: a general approach to dimension reduction. Annals of Statistics, 33(4):1580-1616.

Examples

1
2
3
4
v1 <- c(1, 0, 0)
v2 <- c(0, 1, 0)
disvm(v1, v1)
disvm(v1, v2)

sSDR documentation built on May 1, 2019, 8:23 p.m.

Related to disvm in sSDR...