Average or mean value
(Quaternion overloading of standard MATLAB® function)
Y = mean(X, dim)
mean(X, dim) computes the mean values of the elements of the quaternion array X along dimension dim. If omitted, dim defaults to the columns of X.
>> mean([qi, qj, qk]) ans = 0.3333 * I + 0.3333 * J + 0.3333 * K