projnorm {hierSDR} | R Documentation |
Norm of difference of projections
Description
Measures distance between two subspaces
Usage
projnorm(B1, B2)
Arguments
B1 |
first matrix |
B2 |
second matrix |
Value
scalar value of the projection difference norm between B1
and B2
Examples
b1 <- matrix(rnorm(10 * 2), ncol = 2)
b2 <- matrix(rnorm(10 * 2), ncol = 2)
projnorm(b1, b2)
## angle here should be smalls
b1 <- matrix(rnorm(10 * 2), ncol = 2)
b2 <- b1 + matrix(rnorm(10 * 2, sd = 0.2), ncol = 2)
projnorm(b1, b2)
[Package hierSDR version 0.1 Index]