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


func vDSP_vavlin(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Float>, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)



Single-precision real input vector.


Address stride for A.


Pointer to single-precision real input scalar.


Single-precision real input-output vector.


Stride for C


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


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

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.

Learn more about using Apple's beta software