Function

# vDSP_mvessq(_:_:_:_:)

Calculates the mean of signed squares in a single-precision vector.

## Parameters

__A

Single-precision real input vector.

__I

Stride for A.

__C

Output scalar.

__N

The number of elements to process. If N is zero (0), this function returns -INFINITY.

## Discussion

This function calculates the mean of the signed squares of the first N elements of A and writes the result to C:

The operation is:

The following code shows an example of using vDSP_mvessq(_:_:_:_:):

### Mean Calculation

static func mean<U>(U) -> Double

Returns the double-precision vector mean.

static func mean<U>(U) -> Float

Returns the single-precision vector mean.

static func meanMagnitude<U>(U) -> Double

Returns the double-precision vector mean magnitude.

static func meanMagnitude<U>(U) -> Float

Returns the single-precision vector mean magnitude.

static func meanSquare<U>(U) -> Double

Returns the double-precision vector mean square.

static func meanSquare<U>(U) -> Float

Returns the single-precision vector mean square.

static func rootMeanSquare<U>(U) -> Double

Returns double-precision vector root mean sqaure.

static func rootMeanSquare<U>(U) -> Float

Returns single-precision vector root mean sqaure.

func vDSP_meamgv(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Length)

Calculates the mean of magnitudes in a single-precision vector.

func vDSP_mvessqD(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Double>, vDSP_Length)

Calculates the mean of signed squares in a double-precision vector.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.