I. Introduction
Averaging is a common way to alleviate measurement errors, to cope with statistical fluctuations and to smooth out data. Computing the mean value or the median value of a set of scalar, real-valued measures is an easy task. In some circumstances, however, measures to process appear as structured data, like vectors or matrices, whose entries should further satisfy nonlinear constraints. We refer to such structured/constrained data by the generic term of “patterns.”