Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

4.2.5 vsip_dvmeansqval_p - Compute Mean of Squared Values

vsip_scalar_f vsip_vmeansqval_f(vsip_vview_f const *a); 
vsip_cscalar_f vsip_cvmeansqval_f(vsip_cvview_f const *a);
Description

This function computes the mean of the squared values of all elements in a vector. The mean of squared values is calculated as:

         1 n∑︁-1
mean_sq= --   |ai| 2
         n i=0

where n is the length of the vector and ai are the elements of the input vector.

Parameters
Return Value