Contents

vDSP_rmsqvD

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

Declaration

extern void vDSP_rmsqvD(const double *__A, vDSP_Stride __IA, double *__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_rmsqvD:

See Also

Calculating the root mean square of a vector