align_arun: Rigin alignment with Arun algorithm

Description Usage Arguments Examples

Description

Rigin alignment with Arun algorithm

Usage

1
align_arun(p_i, p1_i)

Arguments

p_i
p1_i

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (p_i, p1_i) 
{
    p <- rowMeans(p_i)
    p1 <- rowMeans(p1_i)
    q_i <- p_i - p
    q1_i <- p1_i - p1
    H <- q_i %*% t(q1_i)
    s <- svd(H)
    U <- s$u
    V <- s$v
    X <- V %*% t(U)
    detx <- det(X)
    R <- X
    T <- p1 - R %*% p
    list(R = R, T = T, detx = detx)
  }

conmolfields documentation built on May 2, 2019, 4:18 p.m.