center | R Documentation |
This function will take the sample Rs and return the sample Rs centered at
S. That is, the ith observation of Rs denoted R_i
is returned as S^\top R_i
.
If S is the true center then the projected mean should be close to the 3-by-3 identity matrix.
center(x, S)
## S3 method for class 'SO3'
center(x, S)
## S3 method for class 'Q4'
center(x, S)
x |
|
S |
the rotation or a matrix of |
The sample centered about S
Rs <- ruars(5, rcayley)
cRs <- center(Rs, mean(Rs))
mean(cRs) #Close to identity matrix
all.equal(cRs, Rs - mean(Rs)) #TRUE, center and '-' have the same effect
#See ?"-.SO3" for more details
center(Rs,Rs) #n-Identity matrices: If the second argument is of the same dimension
#as Rs then each row is centered around the corresponding
#row in the first argument
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.