Contents

vDSP_rmsqv

Calculates the root mean square of a single-precision vector.

Declaration

extern void vDSP_rmsqv(const float *__A, vDSP_Stride __IA, float *__C, vDSP_Length __N);

Parameters

  • __A:

    The input vector.

  • __IA:

    The distance between the elements in the input vector.

  • __C:

    On output, the root mean square of the elements in the input vector.

  • __N:

    The number of elements that the function processes.

Discussion

This function calculates the root mean square of the first N elements of the input vector and writes the result to the output scalar parameter, C.

The following code shows an example of using vDSP_rmsqv:

See Also

Calculating the root mean square of a vector