Function

vDSP_vavlin

Calculates the average of the corresponding elements of two single-precision vectors.

Declaration

void vDSP_vavlin(const float *__A, vDSP_Stride __IA, const float *__B, float *__C, vDSP_Stride __IC, vDSP_Length __N);

Parameters

__A

Single-precision real input vector.

__IA

Address stride for A.

__B

Pointer to single-precision real input scalar.

__C

Single-precision real input-output vector.

__IC

Stride for C

__N

The number of elements to process; each vector must have at least N elements.

Discussion

This performs the following operation:

mathematical formula

Recalculates the linear average of input-output vector C to include input vector A. Input scalar *B specifies the number of vectors included in the current average.

See Also

Single-Vector Linear Average Calculation

vDSP_vavlinD

Calculates the average of the corresponding elements of two double-precision vectors.