mean

(method of quaternion)

mean of a list of quaternions, principle axes and moments of inertia

Syntax

[m, lambda, V] = mean(q)
[m, lambda, V] = mean(q,'robust')
[m, lambda, V] = mean(q,'weights',weights)

Input

q

list of quaternion

weights

list of weights

Output

m

mean orientation

lambda

principle moments of inertia

V

principle axes of inertia (quaternion)

See also

orientation/mean