vsip_scalar_f vsip_vmeanval_f(vsip_vview_f const *a); vsip_scalar_d vsip_vmeanval_d(vsip_vview_d const *a); vsip_cscalar_f vsip_cvmeanval_f(vsip_cvview_f const *a); vsip_cscalar_d vsip_cvmeanval_d(vsip_cvview_d const *a);
This function computes the arithmetic mean (average) value of all elements in a vector. The arithmetic mean is calculated as:

where
is the length of the vector and
are the elements of the input vector.
vsip_dvview_p const* a: Input vector for which to compute the mean value.
Returns the arithmetic mean of all elements in the vector.